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
Click to show internal directories.
Click to hide internal directories.