data

package
v0.0.0-...-b330cc0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigValue

type ConfigValue struct {
	gorm.Model
	ValueDomain Domain `gorm:"foreignkey:ID"`
	Key         string `gorm:"index:configKey"`
	Value       string
}

ConfigValue the key value pair

type Domain

type Domain struct {
	gorm.Model
	Name string `gorm:"index:domain"`
}

Domain the domain which holds the configuration values

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store contains the connection to the store holding the configuration data.

func CreateStore

func CreateStore(provider string, connection string) *Store

CreateStore create a store

func (Store) CreateDomain

func (s Store) CreateDomain(domainName string) error

CreateDomain Create a new domain in the store

Jump to

Keyboard shortcuts

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