node

package
v0.0.0-...-bc5e729 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2017 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrDataNotFound for not found data error
	ErrDataNotFound = fmt.Errorf("%s data not found", logPrefix)
	// ErrDatabaseQueryTimeout for underlying data query timeout error
	ErrDatabaseQueryTimeout = fmt.Errorf("%s upderlying data query timeout", logPrefix)
)

Functions

This section is empty.

Types

type Node

type Node struct {
	// meta
	sync.RWMutex // protect updating for dbs and peers

	// node http server
	*gin.Engine
	// contains filtered or unexported fields
}

Node for one groupcache server

func New

func New(httpAddr string, nodeAddr string, masterAddr string) *Node

New returns a new Node with the given info

func (*Node) Start

func (node *Node) Start()

Start starts the server

Jump to

Keyboard shortcuts

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