Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth interface { GenerateToken(ctx context.Context, mapClaim map[string]any) (string, error) ValidateToken(ctx context.Context, token string) (bool, error) ValidateExtractToken(ctx context.Context, token string) (map[string]any, bool, error) }
func NewJwtAuth ¶
func ProviderSet ¶
type AuthMock ¶
type AuthMock struct {
// contains filtered or unexported fields
}
func (AuthMock) GenerateToken ¶
func (AuthMock) ValidateExtractToken ¶
type JwtAuth ¶
type JwtAuth struct {
// contains filtered or unexported fields
}
func (JwtAuth) GenerateToken ¶
func (JwtAuth) ValidateExtractToken ¶
Click to show internal directories.
Click to hide internal directories.