server

package
v1.0.0-alpha02 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 24 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCreateEtcdClient = coderr.NewCodeError(coderr.Internal, "create etcd etcdCli")
	ErrStartEtcd        = coderr.NewCodeError(coderr.Internal, "start embed etcd")
	ErrStartEtcdTimeout = coderr.NewCodeError(coderr.Internal, "start etcd server timeout")
	ErrStartServer      = coderr.NewCodeError(coderr.Internal, "start server")
)

Functions

This section is empty.

Types

type Server

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

func CreateServer

func CreateServer(cfg *config.Config) (*Server, error)

CreateServer creates the server instance without starting any services or background jobs.

func (*Server) Close

func (srv *Server) Close()

func (*Server) GetClusterManager

func (srv *Server) GetClusterManager() cluster.Manager

func (*Server) GetLeader

func (srv *Server) GetLeader(ctx context.Context) (*member.GetLeaderResp, error)

func (*Server) GetProcedureFactory added in v0.4.0

func (srv *Server) GetProcedureFactory() *procedure.Factory

func (*Server) GetProcedureManager added in v0.4.0

func (srv *Server) GetProcedureManager() procedure.Manager

func (*Server) IsClosed

func (srv *Server) IsClosed() bool

func (*Server) Run

func (srv *Server) Run(ctx context.Context) error

Run runs the services and background jobs.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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