Documentation ¶
Index ¶
- Constants
- Variables
- type CFeature
- func (f *CFeature) Build(b feature.Buildable) (err error)
- func (f *CFeature) CreateNonce(key string) (value 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) VerifyNonce(key, value string) (valid bool)
- type Feature
- type MakeFeature
Constants ¶
View Source
const Tag feature.Tag = "srv-factory-nonces"
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) CreateNonce ¶
CreateNonce will add a new nonce instance to 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) VerifyNonce ¶
VerifyNonce will return true if the nonce is valid and consume the nonce in the process
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.