server

package
v0.6.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const E2CoreHealthURI = "/health"
View Source
const (
	MsgTypeSuborbitalResult = "suborbital.result"
)

Variables

View Source
var (
	ErrDesiredStateNotGenerated = errors.New("desired state was not generated")
	ErrDispatchTimeout          = errors.New("dispatched execution did not complete before the timeout")
	ErrCannotHandle             = errors.New("cannot handle job")
)

Functions

func ReadParam

func ReadParam(ctx echo.Context, name string) string

Types

type Server

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

Server is a E2Core server.

func New

func New(l zerolog.Logger, sync *syncer.Syncer, opts *options.Options) (*Server, error)

New creates a new Server instance.

func (*Server) Options

func (s *Server) Options() options.Options

Options returns the options that the server was configured with

func (*Server) Shutdown

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

Shutdown shuts down the server

func (*Server) Start

func (s *Server) Start() error

Start starts the Server.

func (*Server) Syncer

func (s *Server) Syncer() *syncer.Syncer

Syncer returns the Syncer that the server was configured with

Jump to

Keyboard shortcuts

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