Documentation ¶ Index ¶ type Storage func New(db *database.Database) *Storage func (s *Storage) Add(ctx context.Context, host *entity.Host) (*entity.Host, error) func (s *Storage) Delete(ctx context.Context, id uint64) error func (s *Storage) List(ctx context.Context, filter *entity.ListHostFilter) ([]*entity.Host, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Storage ¶ type Storage struct { // contains filtered or unexported fields } func New ¶ func New(db *database.Database) *Storage func (*Storage) Add ¶ func (s *Storage) Add(ctx context.Context, host *entity.Host) (*entity.Host, error) func (*Storage) Delete ¶ func (s *Storage) Delete(ctx context.Context, id uint64) error func (*Storage) List ¶ func (s *Storage) List(ctx context.Context, filter *entity.ListHostFilter) ([]*entity.Host, error) Source Files ¶ View all Source files storage.go Click to show internal directories. Click to hide internal directories.