storage

package
v0.0.0-...-6af04dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL