repository

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCountRepository

func NewCountRepository(client *mongo.Client) *countRepository

func NewDeviceRepository

func NewDeviceRepository(client *mongo.Client) *deviceRepository

func NewOltElementRepository

func NewOltElementRepository(client *mongo.Client) *oltElementRepository

func NewTrafficRepository

func NewTrafficRepository(client *mongo.Client) *trafficRepository

Types

type CountRepository

type CountRepository interface {
	Create(ctx context.Context, count entity.Count) (string, error)
	Find(ctx context.Context, olt, interfaceName string) (entity.Count, error)
}

type DeviceRepository

type DeviceRepository interface {
	Create(ctx context.Context, device *entity.Device) (string, error)
	FindAll(ctx context.Context) ([]*entity.Device, error)
	FindAllOffset(ctx context.Context, limit int64, offset int64) ([]*entity.Device, error)
}

type ElementRepository

type ElementRepository interface {
	FindID(ctx context.Context, olt, interfName string) (string, error)
	Create(ctx context.Context, olt *entity.ElementOLT) (string, error)
}

type TrafficRepository

type TrafficRepository interface {
	Create(ctx context.Context, traffic *entity.TrafficOLT) (string, error)
}

Jump to

Keyboard shortcuts

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