sitestore

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NsSite     = "NsSite"
	KeySiteCfg = "KeySiteCfg"
)

Variables

View Source
var (
	ErrNotFound = errors.New("site config not found")
)

Functions

This section is empty.

Types

type ISiteStore

type ISiteStore interface {
	SetClientCfg(cfg *db.ClientConfig) error
	GetCfg() (*db.SiteConfig, error)
}

type SiteStore

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

func NewSiteStore

func NewSiteStore(store kvstore.IKVStore) (*SiteStore, error)

func (*SiteStore) GetCfg

func (st *SiteStore) GetCfg() (*db.SiteConfig, error)

func (*SiteStore) Init

func (st *SiteStore) Init(cfg *db.SiteConfig) error

func (*SiteStore) SetClientCfg

func (st *SiteStore) SetClientCfg(cfg *db.ClientConfig) error

Jump to

Keyboard shortcuts

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