utils

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PbParseToModel

func PbParseToModel(slice []*pb.AddSim) []db.Sim

func PoolStats

func PoolStats(slice []db.Sim) *pb.GetStatsResponse

func RawSimToPb

func RawSimToPb(r []RawSim, simType string) []db.Sim

Types

type RawSim

type RawSim struct {
	Iccid          string `csv:"ICCID"`
	Msisdn         string `csv:"MSISDN"`
	SmDpAddress    string `csv:"SmDpAddress"`
	ActivationCode string `csv:"ActivationCode"`
	QrCode         string `csv:"QrCode"`
	IsPhysical     string `csv:"IsPhysical"`
}

func ParseBytesToRawSim

func ParseBytesToRawSim(b []byte) ([]RawSim, error)

Jump to

Keyboard shortcuts

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