Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrSizeLimit is an error, when storage limit is reached. ErrSizeLimit = errors.New("size limit is reached") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server server `toml:"server"` Storage Storage `toml:"Storage"` Settings Settings `toml:"settings"` }
Config is a main configuration structure.
type Settings ¶
type Settings struct { TTL int `toml:"ttl"` Times int `toml:"times"` Size int `toml:"size"` Salt string `toml:"salt"` GC int `toml:"gc"` PassLen int `toml:"passlen"` Shutdown int `toml:"shutdown"` }
Settings struct is base service settings.
type Storage ¶
type Storage struct { sync.Mutex File string `toml:"file"` Dir string `toml:"dir"` Size int64 `toml:"size"` Db *sql.DB // contains filtered or unexported fields }
Storage is storage configuration params struct.
Click to show internal directories.
Click to hide internal directories.