Documentation ¶
Index ¶
Constants ¶
View Source
const ( // プロトコルバージョン ProtocolVersion = "A1" // Node ID. NidStrNone = "" NidStrThis = "." NidStrSeed = "seed" NidStrNext = "next" NidTypeNone = 0 NidTypeNormal = 1 NidTypeThis = 2 NidTypeSeed = 3 NidTypeNext = 4 // Packet mode. ModeNone = 0x0000 ModeReply = 0x0001 ModeExplicit = 0x0002 ModeOneWay = 0x0004 ModeRelaySeed = 0x0008 ModeNoRetry = 0x0010 ChannelNone = 0 ChannelSeed = 1 ChannelWebrtcConnect = 2 // Commonly packet method. MethodError = 0xffff MethodFailure = 0xfffe MethodSuccess = 0xfffd MethodSeedAuth = 1 MethodSeedHint = 2 MethodSeedPing = 3 MethodSeedRequireRandom = 4 MethodWebrtcConnectOffer = 1 // Offer type of WebRTC connect. OfferTypeFirst = 0 // Hint HintOnlyone = 0x0001 HintAssigned = 0x0002 // Key of routineLocal GroupMutex = 1 LinkMutex = 2 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Revision float64 `json:"revision"` PingInterval int64 `json:"pingInterval"` Timeout int64 `json:"timeout"` Node map[string]interface{} `json:"node"` }
func (*Config) CastConfig ¶
type GroupBinder ¶
type Seed ¶
type Seed struct {
// contains filtered or unexported fields
}
func NewSeed ¶
func NewSeed(binder GroupBinder) *Seed
func (*Seed) DestroyGroup ¶
Click to show internal directories.
Click to hide internal directories.