server

package
v0.0.0-...-418c14c Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const KeyPrefix = "grpc-p2p-"

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Name string
	Addr string

	SDAddress string
	SDKV      api.KV

	Peers map[string]hs.HelloServiceClient
}

func (*Node) BroadcastMessage

func (node *Node) BroadcastMessage(message string)

func (*Node) SayHello

func (node *Node) SayHello(ctx context.Context, stream *hs.HelloRequest) (*hs.HelloReply, error)

func (*Node) SetupClient

func (node *Node) SetupClient(name string, addr string)

func (*Node) Start

func (node *Node) Start() error

func (*Node) StartListening

func (node *Node) StartListening()

Jump to

Keyboard shortcuts

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