Documentation
¶
Index ¶
- type Storage
- func (s *Storage) Add(ctx context.Context, networkHost *entity.NetworkHost) (*entity.NetworkHost, error)
- func (s *Storage) Delete(ctx context.Context, id uint64) error
- func (s *Storage) Get(ctx context.Context, id uint64) (*entity.NetworkHost, error)
- func (s *Storage) List(ctx context.Context, filter *entity.ListNetworkHostFilter) ([]*entity.NetworkHost, 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 (*Storage) Add ¶
func (s *Storage) Add(ctx context.Context, networkHost *entity.NetworkHost) (*entity.NetworkHost, error)
func (*Storage) List ¶
func (s *Storage) List(ctx context.Context, filter *entity.ListNetworkHostFilter) ([]*entity.NetworkHost, error)
Click to show internal directories.
Click to hide internal directories.