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 ¶
View Source
var CreditLocal int64
Functions ¶
func CreatePayBill ¶
func CreatePayBill(user, miner string, usage int, priKey ed25519.PrivateKey) (*rpcMsg.UserCreditPay, error)
Types ¶
type ControlPipe ¶
type ControlPipe struct {
// contains filtered or unexported fields
}
func (*ControlPipe) String ¶
func (p *ControlPipe) String() string
type InternetAddress ¶
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 UserWallet ¶
type UserWallet interface { Running(done chan error) Finish() }
type WConfig ¶
type Wallet ¶
type Wallet struct { *PacketBucket *InternetAddress // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.