run

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand added in v1.1.0

func NewCommand(info app.ServerInfo, enableGossip bool) *app.Command

func NewServer

func NewServer(conf config.Config, info app.ServerInfo, logger *Logger.Logger) (app.Server, error)

NewServer returns a new instance of Server built from a config.

Types

type Server

type Server struct {
	BindAddress string
	Listener    net.Listener
	Node        *metaclient.Node
	MetaService *meta.Service

	Logger *Logger.Logger
	// contains filtered or unexported fields
}

func (*Server) Close

func (s *Server) Close() error

Close shuts down the meta service.

func (*Server) Err

func (s *Server) Err() <-chan error

func (*Server) Open

func (s *Server) Open() error

Open opens the meta and data store and all services.

type Service

type Service interface {
	Open() error
	Close() error
}

Service represents a service attached to the server.

Jump to

Keyboard shortcuts

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