repository

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OnuRedisRepositoryInterface

type OnuRedisRepositoryInterface interface {
	GetOnuIDCtx(ctx context.Context, key string) ([]model.OnuID, error)
	SetOnuIDCtx(ctx context.Context, key string, seconds int, onuId []model.OnuID) error
	DeleteOnuIDCtx(ctx context.Context, key string) error
	SaveONUInfoList(ctx context.Context, key string, seconds int, onuInfoList []model.ONUInfoPerBoard) error
	GetONUInfoList(ctx context.Context, key string) ([]model.ONUInfoPerBoard, error)
	GetOnlyOnuIDCtx(ctx context.Context, key string) ([]model.OnuOnlyID, error)
	SaveOnlyOnuIDCtx(ctx context.Context, key string, seconds int, onuId []model.OnuOnlyID) error
	GetOnuSerialNumberCtx(ctx context.Context, key string) ([]model.OnuSerialNumber, error)
	SetOnuSerialNumberCtx(ctx context.Context, key string, seconds int, onuSerialNumber []model.OnuSerialNumber) error
}

OnuRedisRepositoryInterface is an interface that represent the auth's repository contract

func NewOnuRedisRepo

func NewOnuRedisRepo(redisClient *redis.Client) OnuRedisRepositoryInterface

NewOnuRedisRepo will create an object that represent the auth repository

type SnmpRepositoryInterface

type SnmpRepositoryInterface interface {
	Get(oids []string) (result *gosnmp.SnmpPacket, err error)
	Walk(oid string, walkFunc func(pdu gosnmp.SnmpPDU) error) error
}

func NewPonRepository

func NewPonRepository(snmp *gosnmp.GoSNMP) SnmpRepositoryInterface

Jump to

Keyboard shortcuts

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