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: 35 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 NewHttpHandler added in v1.0.0

func NewHttpHandler(c *config.Store) *httpHandler

newHandler returns a new instance of handler with routes.

func NewServer

func NewServer(c 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 {
	Logger *Logger.Logger

	StoreService *Service
	// contains filtered or unexported fields
}

func (*Server) Close

func (s *Server) Close() error

Close shuts down the meta and data stores and all services.

func (*Server) Err

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

Err returns an error channel that multiplexes all out of band errors received from all services.

func (*Server) GetStore added in v1.2.0

func (s *Server) GetStore() *storage.Storage

func (*Server) Open

func (s *Server) Open() error

Open opens the meta and data store and all services.

type Service added in v1.0.0

type Service struct {
	Ln net.Listener
	// contains filtered or unexported fields
}

func NewService added in v1.0.0

func NewService(c *config.Store) *Service

NewService returns a new instance of Service.

func (*Service) Close added in v1.0.0

func (s *Service) Close() error

func (*Service) Open added in v1.0.0

func (s *Service) Open() error

Open starts the meta service

Jump to

Keyboard shortcuts

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