usecase

package
v0.0.0-...-d58daea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCountUsecase

func NewCountUsecase(repo repository.CountRepository) *countUsecase

func NewDeviceUsecase

func NewDeviceUsecase(repo repository.DeviceRepository) *deviceUsecase

func NewElementsUsecase

func NewElementsUsecase(repo repository.ElementRepository) *elementUsecase

func NewOltElementUsecase

func NewOltElementUsecase(repo repository.ElementRepository) *oltElementUsecase

func NewTrafficUsecase

func NewTrafficUsecase(repo repository.TrafficRepository) *trafficUsecase

Types

type CountUsecase

type CountUsecase interface {
	Create(count model.Count) (string, error)
	Find(olt, interfaceName string) (*model.Count, error)
}

type DeviceUsecase

type DeviceUsecase interface {
	Create(ip, community string) error
	FindAll() ([]*model.Device, error)
}

type OltElementUsecase

type OltElementUsecase interface {
	Create(element model.ElementOLT) (string, error)
}

type TrafficUsecase

type TrafficUsecase interface {
	Create(count model.CountDiff) (string, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL