server

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is a E2Core server.

func New

func New(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

func (*Server) Start

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

Start starts the Server 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