router

package
v0.0.0-...-e532b39 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientRequestRouter

type ClientRequestRouter struct {
	RoutingTable
	Clients map[NodeId]*grpc.ClientConn
}

func CreateRouter

func CreateRouter(selfId NodeId) *ClientRequestRouter

func (*ClientRequestRouter) Connect

func (r *ClientRequestRouter) Connect() error

func (*ClientRequestRouter) IsSelf

func (r *ClientRequestRouter) IsSelf(id NodeId) bool

type NetworkAddress

type NetworkAddress string

type NodeId

type NodeId int

type Router

type Router interface {
}

type RoutingTable

type RoutingTable struct {
	NodeNetworkAddresses map[NodeId]NetworkAddress
	HashRing             dht.HashRing
	SelfId               NodeId
}

Jump to

Keyboard shortcuts

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