Documentation ¶
Index ¶
Constants ¶
View Source
const ( InitNs = "SiteInit" SiteNs = "Site" InitTimeKey = "initTime" SiteCfgKey = "siteCfg" )
Variables ¶
View Source
var (
ErrNotFound = errors.New("site config not found")
)
Functions ¶
func IsNotFound ¶
Types ¶
type ClientConfig ¶
type ISiteStore ¶
type ISiteStore interface { SetClientCfg(cfg *ClientConfig) error GetCfg() (*SiteConfig, error) }
type SiteConfig ¶
type SiteConfig struct {
ClientCfg *ClientConfig `json:"clientCfg"`
}
type SiteStore ¶
type SiteStore struct {
// contains filtered or unexported fields
}
func (*SiteStore) GetCfg ¶
func (st *SiteStore) GetCfg() (*SiteConfig, error)
func (*SiteStore) Init ¶
func (st *SiteStore) Init(cfg *SiteConfig) error
func (*SiteStore) SetClientCfg ¶
func (st *SiteStore) SetClientCfg(cfg *ClientConfig) error
Click to show internal directories.
Click to hide internal directories.