client

package
v0.0.0-...-2119b44 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry(host string, timeout time.Duration) *Registry

func NewRegistryFromClient

func NewRegistryFromClient(RegistryClient pb.RegistryServiceClient) *Registry

func (*Registry) AddSubscriber

func (sub *Registry) AddSubscriber(req *pb.AddSubscriberRequest) (*pb.AddSubscriberResponse, error)

func (*Registry) Close

func (sub *Registry) Close()

func (*Registry) DeleteSubscriber

func (sub *Registry) DeleteSubscriber(sid string) (*pb.DeleteSubscriberResponse, error)

func (*Registry) GetByNetwork

func (sub *Registry) GetByNetwork(networkId string) (*pb.GetByNetworkResponse, error)

func (*Registry) GetSubscriber

func (sub *Registry) GetSubscriber(sid string) (*pb.GetSubscriberResponse, error)

func (*Registry) UpdateSubscriber

func (sub *Registry) UpdateSubscriber(subscriber *pb.UpdateSubscriberRequest) (*pb.UpdateSubscriberResponse, error)

type SimManager

type SimManager struct {
	// contains filtered or unexported fields
}

func NewSimManager

func NewSimManager(host string, timeout time.Duration) *SimManager

func NewSimManagerFromClient

func NewSimManagerFromClient(SimManagerClient pb.SimManagerServiceClient) *SimManager

func (*SimManager) AddPackageToSim

func (sm *SimManager) AddPackageToSim(req *pb.AddPackageRequest) (*pb.AddPackageResponse, error)

func (*SimManager) AllocateSim

func (sm *SimManager) AllocateSim(req *pb.AllocateSimRequest) (*pb.AllocateSimResponse, error)

func (*SimManager) Close

func (sm *SimManager) Close()

func (*SimManager) DeleteSim

func (sm *SimManager) DeleteSim(simId string) (*pb.DeleteSimResponse, error)

func (*SimManager) GetPackagesForSim

func (sm *SimManager) GetPackagesForSim(simId string) (*pb.GetPackagesBySimResponse, error)

func (*SimManager) GetSim

func (sm *SimManager) GetSim(simId string) (*pb.GetSimResponse, error)

func (*SimManager) GetSimsByNetwork

func (sm *SimManager) GetSimsByNetwork(networkId string) (*pb.GetSimsByNetworkResponse, error)

func (*SimManager) GetSimsBySub

func (sm *SimManager) GetSimsBySub(subscriberId string) (*pb.GetSimsBySubscriberResponse, error)

func (*SimManager) GetUsages

func (sm *SimManager) GetUsages(simId, simType, cdrType, from, to, region string) (*pb.UsageResponse, error)

func (*SimManager) RemovePackageForSim

func (sm *SimManager) RemovePackageForSim(req *pb.RemovePackageRequest) (*pb.RemovePackageResponse, error)

func (*SimManager) SetActivePackageForSim

func (sm *SimManager) SetActivePackageForSim(req *pb.SetActivePackageRequest) (*pb.SetActivePackageResponse, error)

func (*SimManager) ToggleSimStatus

func (sm *SimManager) ToggleSimStatus(simId string, status string) (*pb.ToggleSimStatusResponse, error)

type SimPool

type SimPool struct {
	// contains filtered or unexported fields
}

func NewSimPool

func NewSimPool(host string, timeout time.Duration) *SimPool

func NewSimPoolFromClient

func NewSimPoolFromClient(SimPoolClient pb.SimServiceClient) *SimPool

func (*SimPool) AddSimsToSimPool

func (sp *SimPool) AddSimsToSimPool(req *pb.AddRequest) (*pb.AddResponse, error)

func (*SimPool) Close

func (sp *SimPool) Close()

func (*SimPool) DeleteSimFromSimPool

func (sp *SimPool) DeleteSimFromSimPool(id []uint64) (*pb.DeleteResponse, error)

func (*SimPool) Get

func (sp *SimPool) Get(iccid string) (*pb.GetByIccidResponse, error)

func (*SimPool) GetSims

func (sp *SimPool) GetSims(simType string) (*pb.GetSimsResponse, error)

func (*SimPool) GetStats

func (sp *SimPool) GetStats(simType string) (*pb.GetStatsResponse, error)

func (*SimPool) UploadSimsToSimPool

func (sp *SimPool) UploadSimsToSimPool(req *pb.UploadRequest) (*pb.UploadResponse, error)

Jump to

Keyboard shortcuts

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