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 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) }
Data access object for Override data.
type Service ¶
type Service struct { StorageService interface { Store(namespace string) storage.Interface } HTTPDService interface { AddRoutes([]httpd.Route) error DelRoutes([]httpd.Route) } // contains filtered or unexported fields }
func NewService ¶
func NewService(c Config, config interface{}, l *log.Logger, updates chan<- ConfigUpdate) *Service
Click to show internal directories.
Click to hide internal directories.