Discover Packages
github.com/mutablelogic/go-server
pkg
handler
tokenjar
package
Version:
v1.4.14
Opens a new window with list of versions in this module.
Published: Jul 31, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
implements a token jar that stores tokens into memory, and potentially a file
on the file system
Create a new tokenjar, with the specified path. If the path is empty,
the tokenjar will be in-memory only.
type Config struct {
DataPath string `hcl:"datapath" description:"Path to persistent data"`
WriteInterval time .Duration `hcl:"write-interval" description:"Interval to write data to disk"`
}
Description returns the description of the service
Name returns the name of the service
Create a new task from the configuration
Source Files
¶
Click to show internal directories.
Click to hide internal directories.