Documentation ¶
Overview ¶
Package storage contains methods for interaction with database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HostStorage ¶
type HostStorage interface { GetAll() ([]model.Host, error) Get(hostID int) (model.Host, error) Save(model.Host) (model.Host, error) Delete(id int) error }
HostStorage defines CRUD operations for Host model.
func Get ¶
func Get(ctx context.Context, appConfig config.Application) (HostStorage, error)
Get returns new data service.
Click to show internal directories.
Click to hide internal directories.