Documentation
¶
Index ¶
- type UseCase
- func (u *UseCase) Add(ctx context.Context, networkHost *entity.NetworkHost) (*entity.NetworkHost, error)
- func (u *UseCase) Delete(ctx context.Context, id uint64) error
- func (u *UseCase) ExportByNetworkIDForContext(ctx context.Context, networkID uint64) (*entity.NetworkHostContextExportPayload, error)
- func (u *UseCase) ImportByNetworkIDFromJSON(ctx context.Context, networkID uint64, jsonData string) error
- func (u *UseCase) 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 UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
func New ¶
func New( trm trm.Manager, networkHostSetupUC usecase.NetworkHostSetup, networkStorage storage.Network, networkHostStorage storage.NetworkHost, ) *UseCase
func (*UseCase) Add ¶
func (u *UseCase) Add( ctx context.Context, networkHost *entity.NetworkHost, ) (*entity.NetworkHost, error)
func (*UseCase) ExportByNetworkIDForContext ¶
func (u *UseCase) ExportByNetworkIDForContext( ctx context.Context, networkID uint64, ) (*entity.NetworkHostContextExportPayload, error)
ExportByNetworkIDForContext exports network hosts without including the network ID in the payload This is suitable for exports from a specific network context where the network is already known.
func (*UseCase) ImportByNetworkIDFromJSON ¶
func (*UseCase) List ¶
func (u *UseCase) List( ctx context.Context, filter *entity.ListNetworkHostFilter, ) ([]*entity.NetworkHost, error)
Click to show internal directories.
Click to hide internal directories.