Documentation
¶
Index ¶
- Constants
- func GV_config(element uint8) string
- func InitializePeer(c *Config, p *raw.Conn, cl *Cluster, peer_id uint32, run *Cluster_runinfo, ...) error
- func PartecipateCluster(c *Config, cl *Cluster, peer_id uint32, ifi *net.Interface) (*raw.Conn, *Cluster_runinfo, *Peer_op, chan bool, error)
- type ChOp
- type Cluster
- type Cluster_runinfo
- type Config
- type InOp
- type Iuint8
- type Macs
- type Ouint8
- type OutOp
- type Peer
- type Peer_op
- type Peer_runinfo
- type Transaction
Constants ¶
View Source
const ( ADV_CLU_FR = 0 + iota ADV_CH_FR ADV_IN_FR ADV_OUT_FR IO_TR_FR ACK_FR )
View Source
const ( ADV_CLU_CM = 0x01 ADV_CH_CM = 0x02 ADV_IN_CM = 0x03 ADV_OUT_CM = 0x04 IO_TR_CM = 0x05 ACK_CM = 0xff )
View Source
const ( TRANSNEW = uint8(0) + iota TRANSDONE )
View Source
const ( GVPEER = uint8(0) + iota GVNODEININPEER GVNODEOUTINPEER GVNODECHINPEER GVCLUSININPEER GVCLUSOUTINPEER GVCLUSCHINPEER )
View Source
const (
ETHERTYPE = 0x8888
)
Variables ¶
This section is empty.
Functions ¶
func InitializePeer ¶
Types ¶
type Cluster_runinfo ¶
type Cluster_runinfo struct { ClusterId uint32 Peers map[uint32]Peer_runinfo Quorate bool Degraded bool }
func (*Cluster_runinfo) String ¶
func (c *Cluster_runinfo) String() string
type Ouint8 ¶
func (*Ouint8) WriteValue ¶
type Peer_runinfo ¶
type Transaction ¶
Click to show internal directories.
Click to hide internal directories.