table

package
v0.0.0-...-e5aaa3f Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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

func QueryAllAccounts() ([]Account, error)

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 QueryNodeByID(id string) (*Node, error)

func QueryNodeByIDs

func QueryNodeByIDs(ids []string) ([]Node, error)

func QueryNodeByIDsAndType

func QueryNodeByIDsAndType(_type string, ids []string) ([]Node, error)

func QueryNodeShadowsocksByIDs

func QueryNodeShadowsocksByIDs(ids []string) ([]Node, error)

func QueryNodeShadowsocksRByIDs

func QueryNodeShadowsocksRByIDs(ids []string) ([]Node, error)

func QueryNodeV2RayByIDs

func QueryNodeV2RayByIDs(ids []string) ([]Node, error)

type NodeShadowsocks

type NodeShadowsocks struct {
	NodeID           string
	Host             string
	Port             string
	Method           string
	Obfuscation      string
	ObfuscationParam string
	Plugin           string
	PluginParam      string

	database.Table
	// contains filtered or unexported fields
}

type NodeShadowsocksR

type NodeShadowsocksR struct {
	NodeID           string
	Host             string
	Port             string
	Password         string
	Method           string
	Protocol         string
	ProtocolParam    string
	Obfuscation      string
	ObfuscationParam string
	Plugin           string
	PluginParam      string

	database.Table
	// contains filtered or unexported fields
}

type NodeV2Ray

type NodeV2Ray struct {
	NodeID          string
	Host            string
	Port            string
	Security        string
	AlertID         string
	TLS             bool
	TLSHost         string
	TLSVerification bool
	Obfuscation     string
	ObfuscationHost string
	ObfuscationPath string

	database.Table
	// contains filtered or unexported fields
}

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 QueryPackageByID(id string) (*Package, error)

func QueryPackageByName

func QueryPackageByName(name string) (*Package, error)

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)

Jump to

Keyboard shortcuts

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