Versions in this module Expand all Collapse all v1 v1.0.11 Jun 28, 2026 Changes in this version + var ErrSubscribePriceOptionModified = errors.New("subscribe price option has been modified") type Subscribe + DetailContent string + DetailFormat string + Features string + ShortDescription string type SubscribePriceOption + Code string + CreatedAt int64 + Type string + UpdatedAt int64 + Version int32 v1.0.10 Jun 26, 2026 Changes in this version type Subscribe + PriceOptions []SubscribePriceOption + type SubscribePriceOption struct + DurationUnit string + DurationValue int64 + ID int64 + Inventory int64 + IsDefault bool + Name string + OriginalPrice int64 + Price int64 + Sell bool + Show bool + Sort int64 + SubscribeID int64 v1.0.9 Jun 25, 2026 Changes in this version type Subscribe + CategoryID int64 + type SubscribeCategory struct + Description string + ID int64 + Language string + Name string + ParentID int64 + Show bool + Sort int64 + type SubscribeCategoryListParams struct + Language string + ParentID *int64 + Show *bool type SubscribeListParams + CategoryID int64 v1.0.8 Jun 24, 2026 v1.0.7 Jun 23, 2026 Changes in this version + const AuthTypeApple + const AuthTypeEmail + const AuthTypeFacebook + const AuthTypeGithub + const AuthTypeGoogle + const AuthTypeMobile + const AuthTypeTelegram + const TypeServerTrafficRank + const TypeTrafficStat + const TypeUserTrafficRank + type ServerTraffic struct + Download int64 + ServerID int64 + Total int64 + Upload int64 + type ServerTrafficRank struct + Rank []ServerTraffic + func (s *ServerTrafficRank) Marshal() ([]byte, error) + func (s *ServerTrafficRank) Unmarshal(data []byte) error + type Subscribe struct + AllowDeduction bool + DeductionRatio int64 + Description string + DeviceLimit int64 + Discount string + ID int64 + Inventory int64 + Language string + Name string + NodeGroupID int64 + NodeGroupIDs []int64 + NodeTags string + Nodes string + Quota int64 + RenewalReset bool + Replacement int64 + ResetCycle int64 + Sell bool + Show bool + ShowOriginalPrice bool + Sort int64 + SpeedLimit int64 + Traffic int64 + TrafficLimit string + UnitPrice int64 + UnitTime string + type SubscribeDiscount struct + Discount int64 + Quantity int64 + type SubscribeGroup struct + Description string + ExpiredDaysLimit int64 + ID int64 + IsExpiredGroup bool + MaxTrafficGBExpired int64 + Name string + SpeedLimit int64 + type SubscribeListParams struct + IDs []int64 + Language string + NodeGroupID int64 + Page int + Search string + Size int + type TrafficLimit struct + SpeedLimit int64 + StatType string + StatValue int64 + TrafficUsage int64 + type TrafficStat struct + Download int64 + Total int64 + Upload int64 + func (t *TrafficStat) Marshal() ([]byte, error) + func (t *TrafficStat) Unmarshal(data []byte) error + type UserSubscribeStatus uint8 + const UserSubscribeStatusActive + const UserSubscribeStatusDeduct + const UserSubscribeStatusExpired + const UserSubscribeStatusFinish + const UserSubscribeStatusPending + type UserTraffic struct + Download int64 + SubscribeID int64 + Total int64 + Upload int64 + UserID int64 + type UserTrafficRank struct + Rank []UserTraffic + func (u *UserTrafficRank) Marshal() ([]byte, error) + func (u *UserTrafficRank) Unmarshal(data []byte) error