server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

type Catalog interface {
	Build(prev []byte, req *proto.ApplyRequest) ([]byte, map[string]*proto.Task, error)
}

type Config

type Config struct {
	GrpcAddr     string
	PersistentDB *bolt.DB
}

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns a default configuration

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(logger hclog.Logger, config *Config) (*Server, error)

func (*Server) Create

func (s *Server) Create(req *proto.ApplyRequest) (string, error)

func (*Server) Pull

func (s *Server) Pull(nodeId string, ws memdb.WatchSet) ([]*proto.Allocation, error)

func (*Server) Stop

func (s *Server) Stop()

func (*Server) UpdateAlloc

func (s *Server) UpdateAlloc(alloc *proto.Allocation) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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