Documentation
¶
Index ¶
Constants ¶
View Source
const SubjectKey = "subject"
SubjectKey for token.
Variables ¶
Module for fx.
Functions ¶
Types ¶
type Config ¶
type Config struct {
JWT *jwt.Config `yaml:"jwt,omitempty" json:"jwt,omitempty" toml:"jwt,omitempty"`
Paseto *paseto.Config `yaml:"paseto,omitempty" json:"paseto,omitempty" toml:"paseto,omitempty"`
SSH *ssh.Config `yaml:"ssh,omitempty" json:"ssh,omitempty" toml:"ssh,omitempty"`
Kind string `yaml:"kind,omitempty" json:"kind,omitempty" toml:"kind,omitempty"`
}
Config for token.
type Generator ¶
type Generator interface {
// Generate a new token or error.
Generate(ctx context.Context) (context.Context, []byte, error)
}
Generator allows the implementation of different types generators.
type Params ¶
type Params struct {
fx.In
Config *Config
JWT *jwt.Token
Paseto *paseto.Token
SSH *ssh.Token
Name env.Name
}
Params for token.
Click to show internal directories.
Click to hide internal directories.