Documentation ¶ Index ¶ func New(config *Config) (repository.Container, error) type Config func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error type Type func (t Type) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(config *Config) (repository.Container, error) New initializes configured storage type and returns associated container. Types ¶ type Config ¶ type Config struct { Type Type MySQL *mysql.Config } Config represents an storage manager configuration. func (*Config) UnmarshalYAML ¶ func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error UnmarshalYAML satisfies Unmarshaler interface. type Type ¶ type Type int Type represents a storage manager type. const ( // MySQL represents a MySQL storage type. MySQL Type = iota // PostgreSQL represents a PostgreSQL storage type. PostgreSQL // Memory represents a in-memory storage type. Memory ) func (Type) String ¶ func (t Type) String() string Source Files ¶ View all Source files config.go storage.go Directories ¶ Show internal Expand all Path Synopsis memory mysql repository Click to show internal directories. Click to hide internal directories.