Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface { // Job methods StoreJob(types.Job) (types.Job, error) RetrieveJob(string) (types.Job, error) UpdateJob(string, types.Job) (types.Job, error) GetJobs() ([]types.Job, error) DeleteJob(string) (types.Job, error) ClearDB() error }
Storage defines functions for accessing data
func GetDatabase ¶
func GetDatabase(config types.SystemConfig) (Storage, error)
GetDatabase selects the correspond driver depend on config
Click to show internal directories.
Click to hide internal directories.