Documentation ¶
Index ¶
- Constants
- Variables
- type CFeature
- func (f *CFeature) Build(b feature.Buildable) (err error)
- func (f *CFeature) CreateToken(key string) (value, shasum string)
- func (f *CFeature) CreateTokenWith(key string, duration time.Duration) (value, shasum string)
- func (f *CFeature) Init(this interface{})
- func (f *CFeature) Make() (feat Feature)
- func (f *CFeature) SetDuration(duration time.Duration) MakeFeature
- func (f *CFeature) SetNumRandomBytes(size int) MakeFeature
- func (f *CFeature) Startup(ctx *cli.Context) (err error)
- func (f *CFeature) VerifyToken(key, value string) (valid bool)
- type Feature
- type MakeFeature
Constants ¶
View Source
const Tag feature.Tag = "srv-factory-tokens"
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CFeature ¶
type CFeature struct { feature.CFeature uses_kvc.CUsesKVC[MakeFeature] // contains filtered or unexported fields }
func (*CFeature) CreateToken ¶
CreateToken will add a new nonce associated with the given key
func (*CFeature) CreateTokenWith ¶
CreateTokenWith will add a new token with the given duration, associated with the given key
func (*CFeature) SetDuration ¶
func (f *CFeature) SetDuration(duration time.Duration) MakeFeature
func (*CFeature) SetNumRandomBytes ¶
func (f *CFeature) SetNumRandomBytes(size int) MakeFeature
func (*CFeature) VerifyToken ¶
VerifyToken will validate and evict the given nonce value
type MakeFeature ¶
type MakeFeature interface { uses_kvc.MakeFeature[MakeFeature] SetDuration(duration time.Duration) MakeFeature SetNumRandomBytes(size int) MakeFeature Make() Feature }
func New ¶
func New() MakeFeature
func NewTagged ¶
func NewTagged(tag feature.Tag) MakeFeature
Click to show internal directories.
Click to hide internal directories.