Documentation ¶
Overview ¶
Package signer GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Index ¶
- Variables
- func InjectContext(ctx context.Context, s Signer) context.Context
- func NewRSAPrimaryKeyREM() ([]byte, error)
- type JWTSigner
- func (s *JWTSigner) Init(ctx context.Context) error
- func (s *JWTSigner) InjectContext(ctx context.Context) context.Context
- func (v JWTSigner) RuntimeDoc(names ...string) ([]string, bool)
- func (s *JWTSigner) SetDefaults()
- func (s *JWTSigner) Sign(ctx context.Context, expiresIn time.Duration, subject string, ...) (string, uint64, error)
- func (s *JWTSigner) Validate(ctx context.Context, t string) (Token, error)
- type Signer
- type Token
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidToken = errors.New("invalid token")
)
Functions ¶
func NewRSAPrimaryKeyREM ¶ added in v0.5.4
Types ¶
type JWTSigner ¶
type JWTSigner struct { Issuer string `flag:",omitempty"` PrivateKey string `flag:",omitempty,secret"` // contains filtered or unexported fields }
func (*JWTSigner) InjectContext ¶
func (*JWTSigner) SetDefaults ¶
func (s *JWTSigner) SetDefaults()
Click to show internal directories.
Click to hide internal directories.