Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface { // Add adds a new server Add(*Server) (*Server, error) // Get returns a server Get(id int) (*Server, error) // All returns all servers // Note: The return is expected to be sorted(ASC) by the ID All() ([]*Server, error) // SetCurrent sets the server identified by the given ID to current SetCurrent(id int) error // GetCurrent returns the server marked as current GetCurrent() (*Server, error) }
Store is the interface for accessing data servers from a persisted storage
Click to show internal directories.
Click to hide internal directories.