Documentation
¶
Index ¶
- Variables
- func ExtractArchive(src, dst string) error
- func IsFileExist(p string) bool
- type Config
- type Consul
- type File
- func (f *File) Default()
- func (f *File) Delete(key string) error
- func (f *File) GetDir() string
- func (f *File) List() ([]string, error)
- func (f *File) Read(key string) ([]byte, error)
- func (f *File) SetDir(dir string)
- func (f *File) SetLogger(logger *slog.Logger)
- func (f *File) Write(key string, data []byte) error
- type KVS
- type Memory
- type Redis
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultCacheDir creates persistent cache dir. DefaultCacheDir = createPersistentCacheDir() // DefaultMaxSize for data size. DefaultMaxSize int64 = 64 * 1024 * 1024 )
Functions ¶
func ExtractArchive ¶
ExtractArchive extracts by archive.
Types ¶
type Consul ¶
type Consul struct {
Host string
Port int
Password string
// contains filtered or unexported fields
}
Consul struct.
type File ¶
File struct.
type KVS ¶
type KVS interface {
Read(key string) ([]byte, error)
Write(key string, data []byte) error
Delete(key string) error
List() ([]string, error)
GetDir() string
}
KVS interface.
Click to show internal directories.
Click to hide internal directories.