Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEmbeddedStore ¶
func NewEmbeddedStore(config *EmbeddedStoreConfig) server.Storager
NewEmbeddedStore creates a embeddedS store with initialized filesystem
func NewMemStore ¶
func NewMemStore() server.Storager
NewMemStore creates a memStore with all maps initialized.
func NewPgSQLStore ¶
func NewPgSQLStore(config *PgSQLConfig) *pgSQLStore
Types ¶
type EmbeddedStoreConfig ¶
type EmbeddedStoreConfig struct {
Path string `yaml:"path"` // Path is the folder path to storage files
}
type PgSQLConfig ¶
type PgSQLConfig struct { Host string `yaml:"host"` DbName string `yaml:"dbname"` User string `yaml:"user"` Password string `yaml:"password"` // Valid sslmodes: disable, allow, prefer, require, verify-ca, verify-full. // See https://www.postgresql.org/docs/current/static/libpq-connect.html for details SSLMode string `yaml:"sslmode"` PaginationKey string `yaml:"paginationkey"` }
Click to show internal directories.
Click to hide internal directories.