sqlite

package
v0.0.0-...-9633304 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config string) (driver.Storager, error)

Types

type Config

type Config struct {
	DB *gorm.DB
}

func (*Config) AddConfig

func (c *Config) AddConfig(key, value string)

func (*Config) CountConfigKey

func (c *Config) CountConfigKey(key string) int

func (*Config) End

func (c *Config) End()

func (*Config) GetConfig

func (c *Config) GetConfig(key string) []types.ServerConfig

func (*Config) ListConfigs

func (c *Config) ListConfigs(prefix string) []types.ServerConfig

func (*Config) RemoveConfig

func (c *Config) RemoveConfig(key, value string)

type Model

type Model struct {
	ID        uint      `gorm:"primary_key"`
	CreatedAt time.Time `gorm:"created_at"`
}

type ServerConfig

type ServerConfig struct {
	Model

	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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