Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
Consumer defines an object that is able to retrieve the key
func NewEnvConsumer ¶
NewEnvConsumer inits a new EnvConsumer
type EnvConsumer ¶
type EnvConsumer struct {
// contains filtered or unexported fields
}
EnvConsumer is key consumer that is able to retrieve the key from the environment
func (*EnvConsumer) Get ¶
func (c *EnvConsumer) Get() (string, error)
Get retrieves the key from the environment An error is returned instead is the environment key was not set
type EnvStorage ¶
type EnvStorage struct {
// contains filtered or unexported fields
}
EnvStorage stores the key in the environment
func (*EnvStorage) IsStored ¶
func (s *EnvStorage) IsStored() (bool, error)
IsStored checks if the environment variable is set
func (*EnvStorage) Store ¶
func (s *EnvStorage) Store(key string) error
Store set the key in the environment
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is responsible for generating and rotating the application key that is used to sign JWTs The key is a base 64 encoded random string
func NewManager ¶
NewManager is a constructor for Manager
type MockConsumer ¶
MockConsumer is an autogenerated mock type for the Consumer type
func (*MockConsumer) Get ¶
func (_m *MockConsumer) Get() (string, error)
Get provides a mock function with given fields: