Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStorage ¶
type FileStorage struct {
// contains filtered or unexported fields
}
func NewFileStorage ¶
func NewFileStorage(configPath string) *FileStorage
func (*FileStorage) Delete ¶
func (f *FileStorage) Delete(key string)
func (*FileStorage) GetReloadChannel ¶
func (f *FileStorage) GetReloadChannel() <-chan bool
func (*FileStorage) Put ¶
func (f *FileStorage) Put(key string, target string)
Put appends a new entry to the link config. If the entry already exists, it will be duplicated in the file.
func (*FileStorage) Read ¶
func (f *FileStorage) Read() map[string]string
func (*FileStorage) Update ¶
func (f *FileStorage) Update(key string, target string)
type NoneStorage ¶
type NoneStorage struct{}
func NewNoneStorage ¶
func NewNoneStorage() *NoneStorage
func (*NoneStorage) Delete ¶
func (s *NoneStorage) Delete(key string)
func (*NoneStorage) GetReloadChannel ¶
func (s *NoneStorage) GetReloadChannel() <-chan bool
func (*NoneStorage) Put ¶
func (s *NoneStorage) Put(key string, target string)
func (*NoneStorage) Read ¶
func (s *NoneStorage) Read() map[string]string
func (*NoneStorage) Update ¶
func (s *NoneStorage) Update(key string, value string)
type ParseError ¶
type ParseError struct{}
func (*ParseError) Error ¶
func (e *ParseError) Error() string
type StorageType ¶
type StorageType int
const ( NONE StorageType = iota FILE )
func FromString ¶
func FromString(s string) StorageType
func (StorageType) String ¶
func (st StorageType) String() string
Click to show internal directories.
Click to hide internal directories.