Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewWithClaims (0.14 sec)

  1. cmd/server_test.go

    	s.testServer.Stop()
    }
    
    const (
    	defaultPrometheusJWTExpiry = 100 * 365 * 24 * time.Hour
    )
    
    func (s *TestSuiteCommon) TestMetricsV3Handler(c *check) {
    	jwt := jwtgo.NewWithClaims(jwtgo.SigningMethodHS512, jwtgo.StandardClaims{
    		ExpiresAt: time.Now().UTC().Add(defaultPrometheusJWTExpiry).Unix(),
    		Subject:   s.accessKey,
    		Issuer:    "prometheus",
    	})
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 15 16:28:02 UTC 2024
    - 116.3K bytes
    - Viewed (0)
Back to top