server

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: BSD-3-Clause Imports: 44 Imported by: 0

Documentation

Overview

Package server implements server.

Index

Constants

View Source
const (
	MinNodes     uint32 = 1
	DefaultNodes uint32 = 5
)
View Source
const DefaultStartTimeout = 5 * time.Minute

Variables

View Source
var (
	ErrInvalidVMName                      = errors.New("invalid VM name")
	ErrInvalidPort                        = errors.New("invalid port")
	ErrClosed                             = errors.New("server closed")
	ErrPluginDirEmptyButCustomVMsNotEmpty = errors.New("empty plugin-dir but non-empty custom VMs")
	ErrPluginDirNonEmptyButCustomVMsEmpty = errors.New("non-empty plugin-dir but empty custom VM")
	ErrNotEnoughNodesForStart             = errors.New("not enough nodes specified for start")
	ErrAlreadyBootstrapped                = errors.New("already bootstrapped")
	ErrNotBootstrapped                    = errors.New("not bootstrapped")
	ErrNodeNotFound                       = errors.New("node not found")
	ErrPeerNotFound                       = errors.New("peer not found")
	ErrUnexpectedType                     = errors.New("unexpected type")
	ErrStatusCanceled                     = errors.New("gRPC stream status canceled")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Port        string
	GwPort      string
	DialTimeout time.Duration
}

type Server

type Server interface {
	Run(rootCtx context.Context) error
}

func New

func New(cfg Config) (Server, error)

Jump to

Keyboard shortcuts

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