Documentation ¶
Index ¶
- type Claims
- type Config
- type Service
- type Servicer
- type ServicerWithMetrics
- func (_d ServicerWithMetrics) GenerateToken(ctx context.Context, key string, secret string) (s1 string, s2 string, i1 int64, err error)
- func (_d ServicerWithMetrics) Health(ctx context.Context) (h1 health.Health, err error)
- func (_d ServicerWithMetrics) ParseToken(tokenString string) (s1 string, err error)
- func (_d ServicerWithMetrics) Ready(ctx context.Context) (err error)
- type ServicerWithTracing
- func (_d ServicerWithTracing) GenerateToken(ctx context.Context, key string, secret string) (s1 string, s2 string, i1 int64, err error)
- func (_d ServicerWithTracing) Health(ctx context.Context) (h1 health.Health, err error)
- func (_d ServicerWithTracing) ParseToken(tokenString string) (s1 string, err error)
- func (_d ServicerWithTracing) Ready(ctx context.Context) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service implements business logic of iam-proxy-v1 Service
func (*Service) GenerateToken ¶
func (s *Service) GenerateToken(_ context.Context, clientID, clientSecret string) (string, string, int64, error)
GenerateToken generates a secret token for the provided app.
func (*Service) ParseToken ¶
ParseToken parses the token and confirms its validity.
type Servicer ¶
type Servicer interface { Health(ctx context.Context) (health.Health, error) Ready(ctx context.Context) error GenerateToken(ctx context.Context, key, secret string) (string, string, int64, error) ParseToken(tokenString string) (string, error) }
Servicer interface of service
func NewWithMetrics ¶
NewWithMetrics returns an instance of the Servicer decorated with metrics
func NewWithTracing ¶
NewWithTracing returns an instance of the Servicer decorated with tracing
type ServicerWithMetrics ¶
type ServicerWithMetrics struct {
// contains filtered or unexported fields
}
ServicerWithMetrics implements Servicer interface with all methods wrapped with metrics
func (ServicerWithMetrics) GenerateToken ¶
func (_d ServicerWithMetrics) GenerateToken(ctx context.Context, key string, secret string) (s1 string, s2 string, i1 int64, err error)
GenerateToken implements Servicer
func (ServicerWithMetrics) ParseToken ¶
func (_d ServicerWithMetrics) ParseToken(tokenString string) (s1 string, err error)
ParseToken implements Servicer
type ServicerWithTracing ¶
type ServicerWithTracing struct {
// contains filtered or unexported fields
}
ServicerWithTracing implements Servicer interface with all methods wrapped with Trace
func (ServicerWithTracing) GenerateToken ¶
func (_d ServicerWithTracing) GenerateToken(ctx context.Context, key string, secret string) (s1 string, s2 string, i1 int64, err error)
GenerateToken implements Servicer
func (ServicerWithTracing) ParseToken ¶
func (_d ServicerWithTracing) ParseToken(tokenString string) (s1 string, err error)
ParseToken implements Servicer
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package mock_service is a generated GoMock package.
|
Package mock_service is a generated GoMock package. |