types

package
v0.0.0-...-2a8bd2f Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentTypeEthernetPCAP  = 1
	AgentTypeEthernetULOG  = 2
	AgentTypeEthernetTEE   = 3
	AgentTypeNetflow       = 4
	AgentTypeSFlow         = 5
	AgentTypeRadius        = 6
	AgentTypeLBPhone       = 7
	AgentTypePABXRS232     = 8
	AgentTypePABXFIFO      = 9
	AgentTypePABXTCPClient = 10
	AgentTypePABXTCPServer = 11
	AgentTypeVOIP          = 12
	AgentTypeServices      = 13
	AgentTypeSNMP          = 14
)
View Source
const (
	BlockRequestActivate = 0
	BlockRequestBlock    = 3
	BlockRequestOff      = 10
)
View Source
const (
	VlanTypeClient VlanType = 1
	VlanTypeDevice VlanType = 2
	VlanTypeGuest  VlanType = 3

	VlanTypeClientName = "client"
	VlanTypeDeviceName = "device"
	VlanTypeGuestName  = "guest"
)

Variables

Functions

func NewComplexError

func NewComplexError(msg string, err error) error

func NewComplexErrorf

func NewComplexErrorf(format string, args ...any) error

func NewComplexWithErrorf

func NewComplexWithErrorf(err error, format string, args ...any) error

func NewWrappedError

func NewWrappedError(errors ...error) error

func ParseJSONRPCError

func ParseJSONRPCError(err error) error

Types

type AccountForRadius

type AccountForRadius struct {
	Archive  bool   `json:"archive"`
	Name     string `json:"name"`
	Template int    `json:"template"`
	TimeMark int    `json:"time_mark"`
	UID      int    `json:"uid"`
}

type AgentOption

type AgentOption struct {
	AgentID  int        `json:"agent_id"`
	Descr    string     `json:"descr"`
	Name     string     `json:"name"`
	TimeMark LBTimeMark `json:"time_mark"`
	Value    string     `json:"value"`
}

type AgentType

type AgentType int

func (AgentType) String

func (a AgentType) String() string

type CategoryModifier

type CategoryModifier struct {
}

CategoryModifier Модификатор категорий тарифов

type ComplexError

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

func (ComplexError) Error

func (e ComplexError) Error() string

func (ComplexError) Unwrap

func (e ComplexError) Unwrap() error

type DateOnly

type DateOnly time.Time

func (*DateOnly) MarshalJSON

func (d *DateOnly) MarshalJSON() ([]byte, error)

func (*DateOnly) String

func (d *DateOnly) String() string

func (*DateOnly) UnmarshalJSON

func (d *DateOnly) UnmarshalJSON(data []byte) error

type Dictionary

type Dictionary struct {
	IsDefault  int        `json:"is_default"`
	Name       string     `json:"name"`
	NasID      *int       `json:"nas_id"`
	RadiusType int        `json:"radius_type"`
	RecordID   int        `json:"record_id"`
	ReplaceID  *int       `json:"replace_id"`
	Tagged     bool       `json:"tagged"`
	TimeMark   LBTimeMark `json:"time_mark"`
	ToHistory  bool       `json:"to_history"`
	ValueType  int        `json:"value_type"`
	Vendor     int        `json:"vendor"`
}

type Error

type Error string
const (
	ErrClient Error = "API client error"
	ErrLogin  Error = "cannot login to LANBilling API"
)

func (Error) Error

func (e Error) Error() string

type GPONPort

type GPONPort struct {
	ID        int        `json:"id"`
	PortID    int        `json:"port_id"`
	TimeMark  LBTimeMark `json:"time_mark"`
	VgID      int        `json:"vg_id"`
	VirtualID string     `json:"virtual_id"`
}

type GroupStaff

type GroupStaff struct {
	GroupID  int        `json:"group_id"`  // Идентификатор группы учетных записей
	TimeMark LBTimeMark `json:"time_mark"` // Отметка времени
	VgID     int        `json:"vg_id"`     // Идентификатор учетной записи в группе
}

GroupStaff - принадлежность учетной записи группам учетных записей

type LBAPINotification

type LBAPINotification struct {
	Message string          `json:"message"`
	Params  json.RawMessage `json:"params"`
}

type LBAccount

type LBAccount struct {
	UID            int           `json:"uid"`
	Category       int           `json:"category"`
	Agreements     []interface{} `json:"agreements"`
	IsDefault      bool          `json:"is_default"`
	Name           string        `json:"name"`
	Login          string        `json:"login"`
	Email          string        `json:"email"`
	IsTemplate     int           `json:"is_template"`
	Mobile         string        `json:"mobile"`
	Phone          string        `json:"phone"`
	AppID          int           `json:"app_id"`
	Descr          string        `json:"descr"`
	IsArchive      bool          `json:"is_archive"`
	SoleProprietor bool          `json:"sole_proprietor"`
	Type           int           `json:"type"`
	Addresses      interface{}   `json:"address"`
}

type LBAgent

type LBAgent struct {
	AdmNotify        int         `json:"adm_notify"`
	AgentID          int         `json:"agent_id"`
	Day              string      `json:"day"`
	Descr            string      `json:"descr"`
	EAPCertPassword  string      `json:"eapcertpassword"`
	FailedCalls      int         `json:"failed_calls"`
	Flush            int         `json:"flush"`
	IgnoreLocal      int         `json:"ignorelocal"`
	KeepDetail       int         `json:"keepdetail"`
	LastContact      string      `json:"lastcontact"`
	LocalASNum       int         `json:"local_as_num"`
	MaxRadiusTimeout int         `json:"max_radius_timeout"`
	Multiply         int         `json:"multiply"`
	NaDB             string      `json:"na_db"`
	NaIP             string      `json:"na_ip"`
	NaPass           string      `json:"na_pass"`
	NaUsername       string      `json:"na_username"`
	Nfhost           interface{} `json:"nfhost"`
	Nfhost6          interface{} `json:"nfhost6"`
	Nfport           int         `json:"nfport"`
	OperCat          int         `json:"oper_cat"`
	Raccport         int         `json:"raccport"`
	RadStopExpired   int         `json:"rad_stop_expired"`
	Raddrpool        int         `json:"raddrpool"`
	Rauthport        int         `json:"rauthport"`
	RecalcCurrent    string      `json:"recalc_current"`
	RecalcDate       string      `json:"recalc_date"`
	RecalcGroup      int         `json:"recalc_group"`
	RecalcRent       int         `json:"recalc_rent"`
	RecalcStat       int         `json:"recalc_stat"`
	RemulateOnNaid   int         `json:"remulate_on_naid"`
	RestartShape     int         `json:"restart_shape"`
	SaveStatAddr     int         `json:"save_stat_addr"`
	ServiceName      string      `json:"service_name"`
	SessionLifetime  int         `json:"session_lifetime"`
	TelDirectionMode int         `json:"tel_direction_mode"`
	TimeMark         LBTimeMark  `json:"time_mark"`
	Timer            int         `json:"timer"`
	Type             int         `json:"type"`
	UseRtime         int         `json:"use_rtime"`
	VoipCardUser     string      `json:"voip_card_user"`
}

type LBBlockRequest

type LBBlockRequest int

func (LBBlockRequest) String

func (L LBBlockRequest) String() string

type LBDeviceGroup

type LBDeviceGroup struct {
	GroupID   int    `json:"group_id"` //Идентификатор группы
	Name      string `json:"name"`     // Название группы
	Desc      string `json:"desc"`     //  Краткая характеристика о группе устройств.
	AgentID   int    `json:"agent_id"` // Общий сетевой агент SNMP, который осуществляет мониторинг работы оборудования.
	AgentName string `json:"agent_name"`

	TimeMark LBTimeMark `json:"time_mark"`
}

LBDeviceGroup Группа операторского оборудования

type LBLicense

type LBLicense struct {
	Cdkey               string `json:"cdkey"`
	Expire              int    `json:"expire"`
	GenDate             string `json:"gen_date"`
	MonoCaptivePortals  int    `json:"mono_captive_portals"`
	MultiCaptivePortals int    `json:"multi_captive_portals"`
	Payments            int    `json:"payments"`
	ProgName            string `json:"prog_name"`
	ProgOwner           string `json:"prog_owner"`
	SerialNumber        string `json:"serial_number"`
	UseAsterisk         bool   `json:"use_asterisk"`
	UseBankDetails      bool   `json:"use_bank_details"`
	UseCerber           bool   `json:"use_cerber"`
	UseEc               bool   `json:"use_ec"`
	UseFidelio          bool   `json:"use_fidelio"`
	UseFiscalization    bool   `json:"use_fiscalization"`
	UseInet             int    `json:"use_inet"`
	UseInventory        bool   `json:"use_inventory"`
	UseIptvportal       bool   `json:"use_iptvportal"`
	UseLbtv             bool   `json:"use_lbtv"`
	UseLifestream       bool   `json:"use_lifestream"`
	UseMegogo           bool   `json:"use_megogo"`
	UseMinistra         bool   `json:"use_ministra"`
	UseMoovi            bool   `json:"use_moovi"`
	UseNexttv           bool   `json:"use_nexttv"`
	UseOperators        bool   `json:"use_operators"`
	UsePhone            int    `json:"use_phone"`
	UseSoftline         bool   `json:"use_softline"`
	UseStarcor          bool   `json:"use_starcor"`
	UseTv24             bool   `json:"use_tv24"`
	UseTvip             bool   `json:"use_tvip"`
	UseUsbox            int    `json:"use_usbox"`
	UserLimit           int    `json:"user_limit"`
}

LBLicense - Информация о лицензии

type LBMacRecord

type LBMacRecord struct {
	Mac            string      `json:"mac"`
	Network        string      `json:"network"`
	NetworkID      int         `json:"network_id"`
	RecordID       int         `json:"record_id"`
	SegmentID      int         `json:"segment_id"`
	TimeMark       LBTimeMark  `json:"time_mark"`
	AllowOverwrite interface{} `json:"allow_overwrite"`
	VgID           int         `json:"vg_id"`
}

type LBNetworkSegment

type LBNetworkSegment struct {
	Network     string `json:"network"`
	Netmask     string `json:"netmask"`
	SegmentType string `json:"segment_type"`
}

func (LBNetworkSegment) String

func (L LBNetworkSegment) String() string

type LBRNasOption

type LBRNasOption struct {
	Name     string     `json:"name"`
	NasID    int        `json:"nas_id"`
	OptionID int        `json:"option_id"`
	TimeMark LBTimeMark `json:"time_mark"`
	Value    string     `json:"value"`
}

type LBSyncBlockVgroup

type LBSyncBlockVgroup struct {
	BlockType int        `json:"block_type"`
	RecordId  int        `json:"record_id"`
	TimeMark  LBTimeMark `json:"time_mark"`
	Timefrom  LBTime     `json:"timefrom"`
	Timeto    LBTime     `json:"timeto"`
	VgId      int        `json:"vg_id"`
}

type LBSyncOption

type LBSyncOption struct {
	Descr    string     `json:"descr"`
	Name     string     `json:"name"`
	TimeMark LBTimeMark `json:"time_mark"`
	Value    string     `json:"value"`
}

type LBSyncStaff

type LBSyncStaff struct {
	Netmask   string         `json:"netmask"`
	Network   string         `json:"network"`
	RecordID  int            `json:"record_id"`
	SegmentID int            `json:"segment_id"`
	TimeMark  LBTimeMark     `json:"time_mark"`
	Type      StaffBlockType `json:"type"`
	VgID      int            `json:"vg_id"`
}

type LBSyncVGroup

type LBSyncVGroup struct {
	AgrmID       int        `json:"agrm_id"`
	Amount       float32    `json:"amount"`
	Archive      int        `json:"archive"`
	BlockDate    string     `json:"block_date"`
	Blocked      int        `json:"blocked"`
	CDate        string     `json:"c_date"`
	Changed      int        `json:"changed"`
	CreationDate string     `json:"creation_date"`
	CurrentShape int        `json:"current_shape"`
	DLimit       int        `json:"d_limit"`
	ID           int        `json:"id"`
	Login        string     `json:"login"`
	MaxSessions  int        `json:"max_sessions"`
	Pass         string     `json:"pass"`
	Shape        int        `json:"shape"`
	TarID        int        `json:"tar_id"`
	Template     int        `json:"template_"`
	TimeMark     LBTimeMark `json:"time_mark"`
	UID          int        `json:"uid"`
	VgID         int        `json:"vg_id"`
}

type LBTime

type LBTime time.Time

func (*LBTime) MarshalJSON

func (c *LBTime) MarshalJSON() ([]byte, error)

func (*LBTime) String

func (d *LBTime) String() string

func (*LBTime) UnmarshalJSON

func (c *LBTime) UnmarshalJSON(b []byte) error

type LBTimeMark

type LBTimeMark struct {
	IsDeleted bool `json:"is_deleted"`
	Mark      int  `json:"mark"`
}

type LanbillingRequest

type LanbillingRequest interface {
	Method() string
}

type LanbillingResponse

type LanbillingResponse interface{}

type Pagination

type Pagination struct {
	PgNum  int `json:"pg_num"`
	PgSize int `json:"pg_size"`
}

type PayCard

type PayCard struct {
	ActTil        string     `json:"act_til"`         // Активировать до
	ActivateDate  *LBTime    `json:"activate_date"`   // Дата активации
	AgrmId        *int       `json:"agrm_id"`         // Идентификатор договора
	AgrmNumber    *string    `json:"agrm_number"`     // Номер договора
	CardKey       string     `json:"card_key"`        // Ключ карты
	CreateDate    *LBTime    `json:"create_date"`     // Дата создания
	CurId         int        `json:"cur_id"`          // Идентификатор валюты
	ExpirePeriod  int        `json:"expire_period"`   // Скор действия
	ModPerson     int        `json:"mod_person"`      // Идентификатор менеджера создавшего
	ModPersonName string     `json:"mod_person_name"` // Имя менеджера создавшего
	SerNo         int        `json:"ser_no"`          // Серийный номер карты
	SetId         int        `json:"set_id"`          // Идентификатор набора карт
	SetName       string     `json:"set_name"`        // Название набора карт
	Sum           float64    `json:"sum"`             // Сумма карты
	Symbol        string     `json:"symbol"`          // Символ валютыс
	TimeMark      LBTimeMark `json:"time_mark"`       // Временная отметка
	Uid           *int       `json:"uid"`             // Идентификатор пользователя
	Used          int        `json:"used"`            // Активирована
	UserName      *string    `json:"user_name"`       // Имя пользователя
}

PayCard - данные о платежной карте

type RNas

type RNas struct {
	AgentID     int           `json:"agent_id"`
	AgentName   string        `json:"agent_name"`
	AuthMethod  string        `json:"auth_method"`
	DaePort     int           `json:"dae_port"`
	DaeServer   string        `json:"dae_server"`
	Descr       string        `json:"descr"`
	DeviceID    *int          `json:"device_id"`
	DeviceName  *string       `json:"device_name"`
	IsNew       interface{}   `json:"is_new"`
	NasID       int           `json:"nas_id"`
	Radblacklog []interface{} `json:"radblacklog"`
	Rnas        string        `json:"rnas"`
	Secret      string        `json:"secret"`
	TimeMark    LBTimeMark    `json:"time_mark"`
	Timezone    float64       `json:"timezone"`
	Type        string        `json:"type"`
}

type RadiusAttrs

type RadiusAttrs struct {
	Id          int     `json:"id"`
	AgentDescr  string  `json:"agent_descr"`
	AttrId      int     `json:"attr_id"`
	CatDescr    *string `json:"cat_descr"`
	CatIdx      *int    `json:"cat_idx"`
	DaeOnEvent  int     `json:"dae_on_event"`
	Description string  `json:"description"`
	DevGroupId  *int    `json:"dev_group_id"`
	DictName    string  `json:"dict_name"`
	GroupId     *int    `json:"group_id"`
	GroupName   *string `json:"group_name"`

	NasId          *int       `json:"nas_id"`
	OwnerDescr     *string    `json:"owner_descr"`
	RadiusCode     int        `json:"radius_code"`
	RecordId       int        `json:"record_id"`
	SegmentId      *int       `json:"segment_id"`
	SegmentIp      *string    `json:"segment_ip"`
	Service        *string    `json:"service"`
	ServiceForList int        `json:"service_for_list"`
	Shape          int        `json:"shape"`
	Tag            int        `json:"tag"`
	TarId          *int       `json:"tar_id"`
	TarifDescr     *string    `json:"tarif_descr"`
	TimeMark       LBTimeMark `json:"time_mark"`
	Value          string     `json:"value"`
	VgId           *int       `json:"vg_id"`
	VgroupLogin    *string    `json:"vgroup_login"`
}

type RadiusStat

type RadiusStat struct {
	TimeFrom        LBTime `json:"time_from"`
	TimeTo          LBTime `json:"time_to"`
	VgId            int    `json:"vg_id"`
	AgrmId          int    `json:"agrm_id"`
	ParentSessionId string `json:"parent_session_id"`
	Ani             string `json:"ani"`
	Dnis            string `json:"dnis"`
	IpAddress       string `json:"ip_address"`
	FramedPrefix    string `json:"framed_prefix"`
	DelegatedPrefix string `json:"delegated_prefix"`
	NasIp           string `json:"nas_ip"`
	Cause           int    `json:"cause"`
	AgentId         int    `json:"agent_id"`
	IsGuest         bool   `json:"is_guest"`
	SessionId       string `json:"session_id"`
	CatIdx          int    `json:"cat_idx"`
	DeltaCin        int    `json:"delta_cin"`
	DeltaCout       int    `json:"delta_cout"`
	DeltaTm         int    `json:"delta_tm"`
	Service         string `json:"service"`
}

type Segment

type Segment struct {
	AgentID         int         `json:"agent_id"`
	DelegatedPrefix interface{} `json:"delegated_prefix"`
	Descr           string      `json:"descr"`
	DeviceGroupID   interface{} `json:"device_group_id"`
	DeviceGroupName interface{} `json:"device_group_name"`
	Gateway         interface{} `json:"gateway"`
	Guest           int         `json:"guest"`
	IgnoreLocal     int         `json:"ignore_local"`
	IP              string      `json:"ip"`
	Mask            string      `json:"mask"`
	NasID           int         `json:"nas_id"`
	Nat             int         `json:"nat"`
	OuterVlan       *int        `json:"outer_vlan"`
	Priority        int         `json:"priority"`
	Rnas            interface{} `json:"rnas"`
	SegmentID       int         `json:"segment_id"`
	TimeMark        LBTimeMark  `json:"time_mark"`
	Type            int         `json:"type"`
	Unavailable     int         `json:"unavailable"`
	VlanID          *int        `json:"vlan_id"`
	VlanName        *string     `json:"vlan_name"`
}

func (Segment) String

func (s Segment) String() string

type StaffAddressType

type StaffAddressType int
const (
	StaffAddressTypeIPv4 StaffAddressType = 2
	StaffAddressTypeIPv6 StaffAddressType = 10
)

func (StaffAddressType) String

func (s StaffAddressType) String() string

type StaffBlockType

type StaffBlockType int
const (
	StaffBlockTypeIPv4          StaffBlockType = 0
	StaffBlockTypeIPv6Delegated StaffBlockType = 1
	StaffBlockTypeIPv6Framed    StaffBlockType = 2
)

func (StaffBlockType) String

func (s StaffBlockType) String() string

type SyncAgreement

type SyncAgreement struct {
	AgrmID        int        `json:"agrm_id"` // Идентификатор договора
	Balance       float64    `json:"balance"` // Баланс договора
	Credit        float64    `json:"credit"`  // Доступный кредит
	Installments  float64    `json:"installments"`
	Number        string     `json:"number"`         // Номер договора
	PromiseCredit float64    `json:"promise_credit"` // Кредит обещанного платежа
	TimeMark      LBTimeMark `json:"time_mark"`
}

type SyncAgreementExt

type SyncAgreementExt struct {
	AgrmID        int        `json:"agrm_id"`
	PaymentMethod int        `json:"payment_method"`
	TimeMark      LBTimeMark `json:"time_mark"`
}

type TarCatSizeDiscount

type TarCatSizeDiscount struct {
	Type     int        `json:"type"`      // Тип скидки (%/руб)
	Amount   float32    `json:"amount"`    // Объем, МБ
	Bonus    float32    `json:"bonus"`     // Бонус, руб
	CatIDX   int        `json:"cat_idx"`   // Идентификатор каталога
	DisID    int        `json:"dis_id"`    // Идентификатор скидки
	Discount float32    `json:"discount"`  // Скидка
	TarID    int        `json:"tar_id"`    // Идентификатор тарифа
	TimeMark LBTimeMark `json:"time_mark"` // Отметка времени
}

type TarCatTimeDiscount

type TarCatTimeDiscount struct {
	CatIdx   int        `json:"cat_idx"`
	DisID    int        `json:"dis_id"`
	Discount float64    `json:"discount"`
	TarID    int        `json:"tar_id"`
	TimeFrom TimeOnly   `json:"time_from"`
	TimeTo   TimeOnly   `json:"time_to"`
	TimeMark LBTimeMark `json:"time_mark"`

	Type       int  `json:"type"`
	UseWeekend bool `json:"use_weekend"`
	Week       struct {
		Mon   bool `json:"mon"`
		Tue   bool `json:"tue"`
		Wed   bool `json:"wed"`
		Thu   bool `json:"thu"`
		Fri   bool `json:"fri"`
		Sat   bool `json:"sat"`
		Sun   bool `json:"sun"`
		Value int  `json:"value"`
	} `json:"week"`
}

type TarSizeShape

type TarSizeShape struct {
	ID        int                `json:"id"`         // Идентификатор
	TarID     int                `json:"tar_id"`     // Идентификатор тарифа
	Amount    int                `json:"amount"`     // Объем, МБ
	ShapeRate float64            `json:"shape_rate"` // Полоса пропускания
	Period    TarSizeShapePeriod `json:"period"`     // Период
	TimeMark  LBTimeMark         `json:"time_mark"`  // Отметка времени
}

TarSizeShape Настройки полосы пропускания тарифа в зависимости от объема

type TarSizeShapePeriod

type TarSizeShapePeriod int
const (
	TarSizeShapePeriodMonth TarSizeShapePeriod = iota
	TarSizeShapePeriodWeek
	TarSizeShapePeriodDay
)

func (TarSizeShapePeriod) String

func (t TarSizeShapePeriod) String() string

type TarTimeShape

type TarTimeShape struct {
	ID         int        `json:"id"`          // Идентификатор
	TarID      int        `json:"tar_id"`      // Идентификатор тарифа
	ShapeRate  float64    `json:"shape_rate"`  // Полоса пропускания
	TimeFrom   TimeOnly   `json:"time_from"`   // Начало периода применения
	TimeTo     TimeOnly   `json:"time_to"`     // Конец периода применения
	TimeMark   LBTimeMark `json:"time_mark"`   // Отметка времени
	UseWeekend bool       `json:"use_weekend"` // Использовать календарь праздников
	Week       struct {
		Mon   bool `json:"mon"`
		Tue   bool `json:"tue"`
		Wed   bool `json:"wed"`
		Thu   bool `json:"thu"`
		Fri   bool `json:"fri"`
		Sat   bool `json:"sat"`
		Sun   bool `json:"sun"`
		Value int  `json:"value"`
	} `json:"week"` // Расписание
}

TarTimeShape Настройки полосы пропускания тарифа в зависимости от времени

type Tariff

type Tariff struct {
	TarId             int           `json:"tar_id"`
	ActBlock          int           `json:"act_block"`
	Additional        int           `json:"additional"`
	Addons            []interface{} `json:"addons"`
	AdmBlockRent      float64       `json:"adm_block_rent"`
	Archive           int           `json:"archive"`
	Assigned          int           `json:"assigned"`
	AvailableFl       int           `json:"available_fl"`
	AvailableUl       int           `json:"available_ul"`
	BlockRent         float64       `json:"block_rent"`
	BlockRentDuration int           `json:"block_rent_duration"`
	ChargeIncoming    int           `json:"charge_incoming"`
	CheckActiveHours  int           `json:"check_active_hours"`
	CoefHigh          float64       `json:"coef_high"`
	CoefLow           float64       `json:"coef_low"`
	CommonIncludes    int           `json:"common_includes"`
	CurId             int           `json:"cur_id"`
	CurName           string        `json:"cur_name"`
	DailyRent         int           `json:"daily_rent"`
	Descr             string        `json:"descr"`
	DescrFull         string        `json:"descr_full"`
	DynRoute          int           `json:"dyn_route"`
	DynamicRent       int           `json:"dynamic_rent"`
	LastModDate       int           `json:"last_mod_date"`
	Link              string        `json:"link"`
	NdsAbove          int           `json:"nds_above"`
	PricePlan         int           `json:"price_plan"`
	Rent              float64       `json:"rent"`
	RentAsService     int           `json:"rent_as_service"`
	RentMultiply      int           `json:"rent_multiply"`
	SaleDictionaryId  int           `json:"sale_dictionary_id"`
	ServiceType       int           `json:"service_type"`
	Shape             int           `json:"shape"`
	ShapePrior        int           `json:"shape_prior"`
	Symbol            string        `json:"symbol"`
	TimeMark          LBTimeMark    `json:"time_mark"`
	TraffLimit        int           `json:"traff_limit"`
	TraffLimitPer     int           `json:"traff_limit_per"`
	TraffType         int           `json:"traff_type"`
	Type              int           `json:"type"`
	Unavailable       int           `json:"unavailable"`
	UseCommonIncludes int           `json:"use_common_includes"`
	Used              int           `json:"used"`
	UsrBlockRent      float64       `json:"usr_block_rent"`
	Uuid              string        `json:"uuid"`
	VoipBlockLocal    int           `json:"voip_block_local"`
}

type TimeOnly

type TimeOnly time.Duration

func (*TimeOnly) MarshalJSON

func (d *TimeOnly) MarshalJSON() ([]byte, error)

func (*TimeOnly) String

func (d *TimeOnly) String() string

func (*TimeOnly) UnmarshalJSON

func (d *TimeOnly) UnmarshalJSON(data []byte) error

type VGroupRecord

type VGroupRecord struct {
	AccOffDate     string      `json:"acc_off_date"`
	AccOnDate      string      `json:"acc_on_date"`
	ActivationCode interface{} `json:"activation_code"`
	Addresses      []struct {
		Address string      `json:"address"`
		Code    string      `json:"code"`
		Type    interface{} `json:"type"`
	} `json:"addresses"`
	AgentID          int         `json:"agent_id"`
	AgentName        string      `json:"agent_name"`
	AgentType        AgentType   `json:"agent_type"`
	AgrmID           int         `json:"agrm_id"`
	AgrmNum          string      `json:"agrm_num"`
	Archive          int         `json:"archive"`
	AuthMethod       string      `json:"auth_method"`
	Balance          float32     `json:"balance"`
	BlkReq           int         `json:"blk_req"`
	BlockDate        string      `json:"block_date"`
	Blocked          int         `json:"blocked"`
	ChangedTariffOn  interface{} `json:"changedtariffon"`
	CreationDate     string      `json:"creation_date"`
	CuID             interface{} `json:"cu_id"`
	DClear           string      `json:"d_clear"`
	DLimit           int         `json:"d_limit"`
	Descr            string      `json:"descr"`
	Dirty            int         `json:"dirty"`
	Login            string      `json:"login"`
	MaxSessions      int         `json:"max_sessions"`
	MonthlyRent      interface{} `json:"monthlyrent"`
	ParentVgID       interface{} `json:"parent_vg_id"`
	ParentVgLogin    interface{} `json:"parent_vg_login"`
	Pass             string      `json:"pass"`
	PayCode          interface{} `json:"pay_code"`
	PpDebt           interface{} `json:"pp_debt"`
	RenewalState     int         `json:"renewal_state"`
	Rent             interface{} `json:"rent"`
	SetID            interface{} `json:"set_id"`
	Symbol           string      `json:"symbol"`
	TarID            int         `json:"tar_id"`
	TarName          string      `json:"tar_name"`
	Template         int         `json:"template"`
	TimeMark         LBTimeMark  `json:"time_mark"`
	TotalMonthlyRent interface{} `json:"totalmonthlyrent"`
	UID              int         `json:"uid"`
	UserCategory     int         `json:"user_category"`
	UserName         string      `json:"user_name"`
	UserType         interface{} `json:"user_type"`
	VgID             int         `json:"vg_id"`
}

type VlanRecord

type VlanRecord struct {
	VlanId    int      `json:"vlan_id,omitempty"`
	InnerVlan int      `json:"inner_vlan"`
	OuterVlan int      `json:"outer_vlan"`
	Name      string   `json:"name"`
	Type      VlanType `json:"type"`
}

type VlanType

type VlanType int

func (VlanType) String

func (v VlanType) String() string

type Weekend

type Weekend struct {
	IsHoliday bool       `json:"is_holiday"`
	Date      DateOnly   `json:"date"`
	TimeMark  LBTimeMark `json:"time_mark"`
}

type WrappedError

type WrappedError []error

func (WrappedError) Error

func (e WrappedError) Error() string

func (WrappedError) Unwrap

func (e WrappedError) Unwrap() error

Jump to

Keyboard shortcuts

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