Documentation ¶
Index ¶
- type Account
- type Node
- func QueryNodeByID(id string) (*Node, error)
- func QueryNodeByIDs(ids []string) ([]Node, error)
- func QueryNodeByIDsAndType(_type string, ids []string) ([]Node, error)
- func QueryNodeShadowsocksByIDs(ids []string) ([]Node, error)
- func QueryNodeShadowsocksRByIDs(ids []string) ([]Node, error)
- func QueryNodeV2RayByIDs(ids []string) ([]Node, error)
- type NodeShadowsocks
- type NodeShadowsocksR
- type NodeV2Ray
- type Package
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Username string Nickname string Email string QQ string Telegram string Money int Password string database.Table // contains filtered or unexported fields }
func QueryAllAccounts ¶
type Node ¶
type Node struct { Name string Description string Tags []string `pg:",array"` Location string Type string FastOpen bool NodeShadowsocks *NodeShadowsocks NodeShadowsocksR *NodeShadowsocksR NodeV2Ray *NodeV2Ray `pg:"nodes_v2ray"` database.Table // contains filtered or unexported fields }
func QueryNodeByID ¶
func QueryNodeByIDs ¶
func QueryNodeV2RayByIDs ¶
type NodeShadowsocks ¶
type NodeShadowsocksR ¶
type Package ¶
type Package struct { Name string Description string Nodes []string `pg:",array"` Money int Day int Traffic int Device int database.Table // contains filtered or unexported fields }
func QueryPackageByID ¶
func QueryPackageByName ¶
type Subscription ¶
type Subscription struct { Package string Account string Key string UUID string Status string ExpireAt time.Time database.Table // contains filtered or unexported fields }
func QuerySubscriptionByKey ¶
func QuerySubscriptionByKey(key string) (*Subscription, error)
func QuerySubscriptionsOrder ¶
func QuerySubscriptionsOrder() ([]Subscription, error)
Click to show internal directories.
Click to hide internal directories.