Documentation
¶
Index ¶
- Constants
- func SIGNER_BACKEND() signing.Signer
- type SecretKey
- func (s SecretKey) Bytes() []byte
- func (s SecretKey) IsZero() bool
- func (s SecretKey) Sign(ctx context.Context, data []byte) (string, error)
- func (s SecretKey) SignObject(ctx context.Context, obj interface{}) (string, error)
- func (s SecretKey) String() string
- func (s SecretKey) Unsign(ctx context.Context, signed string) ([]byte, error)
- func (s SecretKey) UnsignObject(ctx context.Context, signed string, obj interface{}) error
- type Settings
Constants ¶
View Source
const ( // Secret key for the application APPVAR_SECRET_KEY = "APPVAR_SECRET_KEY" // string // Secret key fallbacks for the application APPVAR_SECRET_KEY_FALLBACKS = "APPVAR_SECRET_KEY_FALLBACKS" // []string // Signer backend for the application APPVAR_SIGNER_BACKEND = "APPVAR_SIGNER_BACKEND" // internals/signing.Signer )
Variables ¶
This section is empty.
Functions ¶
func SIGNER_BACKEND ¶
Types ¶
type SecretKey ¶
type SecretKey []byte
func SECRET_KEY ¶
func SECRET_KEY() SecretKey
func SECRET_KEY_FALLBACKS ¶
func SECRET_KEY_FALLBACKS() []SecretKey
func (SecretKey) SignObject ¶
Click to show internal directories.
Click to hide internal directories.