client

package
v0.0.0-...-67a7720 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client()

Client sends lines from a fixed data file to the raft leader

Types

type ClientNode

type ClientNode struct {
	sync.Mutex

	Datafile string
	// contains filtered or unexported fields
}

ClientNode represents a client who stores data in the raft cluster

func NewClientNode

func NewClientNode(id raft.ClientID, recvPort int, hosts raft.HostMap, clients raft.ClientMap, quitChan chan bool) *ClientNode

func (*ClientNode) QuitChan

func (c *ClientNode) QuitChan() chan bool

func (*ClientNode) Start

func (c *ClientNode) Start()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL