server

package
v0.0.0-...-4437b4c Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package server provides a server implementation of a single node of an Oort cluster.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupStore

type GroupStore struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewGroupStore

func NewGroupStore(cfg *GroupStoreConfig) (*GroupStore, chan error, error)

func (*GroupStore) Delete

func (*GroupStore) Lookup

func (*GroupStore) LookupGroup

func (*GroupStore) Read

func (*GroupStore) ReadGroup

func (*GroupStore) Shutdown

func (s *GroupStore) Shutdown(ctx context.Context) error

func (*GroupStore) Startup

func (s *GroupStore) Startup(ctx context.Context) error

func (*GroupStore) Stats

func (s *GroupStore) Stats() []byte

func (*GroupStore) Wait

func (s *GroupStore) Wait()

Wait isn't implemented yet, need graceful shutdowns in grpc

func (*GroupStore) Write

type GroupStoreConfig

type GroupStoreConfig struct {
	GRPCAddressIndex int
	ReplAddressIndex int
	GRPCCertFile     string
	GRPCKeyFile      string
	ReplCertFile     string
	ReplKeyFile      string
	CAFile           string
	Path             string
	Scale            float64
	Ring             ring.Ring
	Logger           *zap.Logger
}

type ValueStore

type ValueStore struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewValueStore

func NewValueStore(cfg *ValueStoreConfig) (*ValueStore, chan error, error)

func (*ValueStore) Delete

func (*ValueStore) Lookup

func (*ValueStore) Read

func (*ValueStore) Shutdown

func (s *ValueStore) Shutdown(ctx context.Context) error

func (*ValueStore) Startup

func (s *ValueStore) Startup(ctx context.Context) error

func (*ValueStore) Stats

func (s *ValueStore) Stats() []byte

func (*ValueStore) Wait

func (s *ValueStore) Wait()

Wait isn't implemented yet, need graceful shutdowns in grpc

func (*ValueStore) Write

type ValueStoreConfig

type ValueStoreConfig struct {
	GRPCAddressIndex int
	ReplAddressIndex int
	GRPCCertFile     string
	GRPCKeyFile      string
	ReplCertFile     string
	ReplKeyFile      string
	CAFile           string
	Path             string
	Scale            float64
	Ring             ring.Ring
	Logger           *zap.Logger
}

Jump to

Keyboard shortcuts

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