Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoOverrideExists = errors.New("no override exists")
)
Functions ¶
This section is empty.
Types ¶
type ConfigUpdate ¶
type Diagnostic ¶
type Override ¶
type Override struct { // Unique identifier for the override ID string `json:"id"` // Map of key value pairs of option overrides. Options map[string]interface{} `json:"options"` Create bool `json:"create"` }
func (Override) MarshalBinary ¶
func (*Override) UnmarshalBinary ¶
type OverrideDAO ¶
type OverrideDAO interface { // Retrieve a override Get(id string) (Override, error) // Set an override. // If it does not already exist it will be created, // otherwise it will be replaced. Set(o Override) error // Delete a override. // It is not an error to delete an non-existent override. Delete(id string) error // List all overrides whose ID starts with the given prefix List(prefix string) ([]Override, error) Rebuild() error }
Data access object for Override data.
type Service ¶
type Service struct { StorageService interface { Store(namespace string) storage.Interface Register(name string, store storage.StoreActioner) } HTTPDService interface { AddRoutes([]httpd.Route) error DelRoutes([]httpd.Route) } // contains filtered or unexported fields }
func NewService ¶
func NewService(c Config, config interface{}, d Diagnostic, updates chan<- ConfigUpdate) *Service
Click to show internal directories.
Click to hide internal directories.