Documentation ¶
Index ¶
- Constants
- Variables
- func Getval(name, def string) string
- func ParseStorageDSN(s string) (string, string)
- func Storage(c StorageConfig, env Env, l lw.Logger) (processing.ReadStore, error)
- func ValidEnv(s string) bool
- func ValidStorageType(typ string) bool
- type BackendConfig
- type Env
- type Options
- type StorageConfig
- type StorageType
Constants ¶
View Source
const ( KeyENV = "ENV" KeyTimeOut = "TIME_OUT" KeyLogLevel = "LOG_LEVEL" KeyLogOutput = "LOG_OUTPUT" KeyHostname = "HOSTNAME" KeyHTTPS = "HTTPS" KeyCertPath = "CERT_PATH" KeyKeyPath = "KEY_PATH" KeyListen = "LISTEN" KeyStorage = "STORAGE" KeyStoragePath = "STORAGE_PATH" StorageFS = "fs" StorageBoltDB = "boltdb" StorageBadger = "badger" StorageSqlite = "sqlite" )
View Source
const DefaultStorage = StorageFS
Variables ¶
View Source
var Prefix = "point"
View Source
var ValidStorageTypes = []string{ StorageFS, StorageBoltDB, StorageBadger, StorageSqlite, }
Functions ¶
func ParseStorageDSN ¶
func Storage ¶
func Storage(c StorageConfig, env Env, l lw.Logger) (processing.ReadStore, error)
func ValidStorageType ¶
Types ¶
type BackendConfig ¶
type Options ¶
type StorageConfig ¶
type StorageType ¶
type StorageType string
Click to show internal directories.
Click to hide internal directories.