Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericTokenGenerator ¶
type GenericTokenGenerator struct {
// contains filtered or unexported fields
}
func NewGenericTokenGenerator ¶
func NewGenericTokenGenerator(tokenLen int) *GenericTokenGenerator
NewGenericTokenGenerator returns a new *GenericTokenGenerator generating tokens with the given length.
type TokenGenerator ¶
TokenGenerator implements just the method Generate(), which must return a cryptographically secure random string and an error.
var DefaultTokenGenerator TokenGenerator = &GenericTokenGenerator{120}
Click to show internal directories.
Click to hide internal directories.