Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConnection ¶
func GetConnection(addr string) *grpc.ClientConn
Types ¶
type Node ¶
type Node struct { protos.UnimplementedMutualExclusionServer Id int Addr string PeerAddr string Peer *Peer GrpcServer *grpc.Server IsTokenHolder bool // contains filtered or unexported fields }
func (*Node) CritcalZoneTimer ¶
func (node *Node) CritcalZoneTimer()
type Peer ¶
type Peer struct { Addr string // network address // contains filtered or unexported fields }
peer is the the remote node that a local node can connect to.
func CreatePeer ¶
func (*Peer) Recieve ¶
func (peer *Peer) Recieve(client protos.MutualExclusionClient)
Click to show internal directories.
Click to hide internal directories.