Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
func GenerateToken() string
func GetConfigRootDir ¶
func GetConfigRootDir() string
GetConfigRootDir will return the dir from the provided/loaded configuration
func ListContainsString ¶
Types ¶
type DismissiveList ¶
type DismissiveList interface { Add(value string, ttl int64) error Set(value string, ttl int64) error Has(value string) bool Del(value string) error All() ([]string, error) Drp() error }
func NewDismissiveList ¶
func NewDismissiveList(name string) DismissiveList
NewDismissiveList will create a new named list
type InMemoryFile ¶
type InMemoryFile struct { fs.File InMemoryFileInfo InMemoryFileInfo // Size() will return an inaccurate value, since we modified it Buf *bytes.Buffer }
func (InMemoryFile) Close ¶
func (im InMemoryFile) Close() error
type InMemoryFileInfo ¶
func (InMemoryFileInfo) IsDir ¶
func (fi InMemoryFileInfo) IsDir() bool
func (InMemoryFileInfo) ModTime ¶
func (fi InMemoryFileInfo) ModTime() time.Time
func (InMemoryFileInfo) Mode ¶
func (fi InMemoryFileInfo) Mode() fs.FileMode
func (InMemoryFileInfo) Name ¶
func (fi InMemoryFileInfo) Name() string
func (InMemoryFileInfo) Size ¶
func (fi InMemoryFileInfo) Size() int64
Click to show internal directories.
Click to hide internal directories.