Documentation ¶
Index ¶
Constants ¶
View Source
const MaxLocalConn = 1 << 10
View Source
const PipeDialTimeOut = time.Second * 2
View Source
const RechargeTimeInterval = time.Minute * 5
View Source
const ServeNodeSep = "@"
View Source
const ServeNodeTimeOut = time.Second * 2
Variables ¶
This section is empty.
Functions ¶
func CreatePayBill ¶
func CreatePayBill(user, miner string, usage int, priKey ed25519.PrivateKey) (*rpcMsg.UserCreditPay, error)
Types ¶
type LeftPipe ¶
type LeftPipe struct {
// contains filtered or unexported fields
}
func (*LeftPipe) PullDataFromServer ¶
func (p *LeftPipe) PullDataFromServer()
type PacketBucket ¶
type ServeNodeId ¶
func ParseService ¶
func ParseService(path string) *ServeNodeId
func (*ServeNodeId) String ¶
func (m *ServeNodeId) String() string
func (*ServeNodeId) TONetAddr ¶
func (m *ServeNodeId) TONetAddr() string
func (*ServeNodeId) TestTTL ¶
func (m *ServeNodeId) TestTTL(saver func(fd uintptr)) bool
type WConfig ¶
type WConfig struct { BCAddr string Cipher string SettingUrl string ServerId *ServeNodeId Saver func(fd uintptr) }
type Wallet ¶
type Wallet struct { *PacketBucket // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.