Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileBackend ¶
type FileBackend struct { Dir string FileSystem fs.FileSystem }
func NewFileBackend ¶
func NewFileBackend(dir string, filesystem fs.FileSystem) (*FileBackend, error)
func (FileBackend) Get ¶
func (f FileBackend) Get() (string, error)
func (FileBackend) Set ¶
func (f FileBackend) Set(value string) error
type MemoryBackend ¶
type MemoryBackend struct {
Token string
}
func NewMemoryBackend ¶
func NewMemoryBackend() (*MemoryBackend, error)
func (*MemoryBackend) Get ¶
func (f *MemoryBackend) Get() (string, error)
func (*MemoryBackend) Set ¶
func (f *MemoryBackend) Set(value string) error
Click to show internal directories.
Click to hide internal directories.