Documentation ¶
Index ¶
- Variables
- type Server
- func (srv *Server) Close()
- func (srv *Server) GetClusterManager() cluster.Manager
- func (srv *Server) GetLeader(ctx context.Context) (*member.GetLeaderResp, error)
- func (srv *Server) GetProcedureFactory() *coordinator.Factory
- func (srv *Server) GetProcedureManager() procedure.Manager
- func (srv *Server) IsClosed() bool
- func (srv *Server) Run(ctx context.Context) error
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 ¶
CreateServer creates the server instance without starting any services or background jobs.
func (*Server) GetClusterManager ¶
func (*Server) GetProcedureFactory ¶ added in v0.4.0
func (srv *Server) GetProcedureFactory() *coordinator.Factory
func (*Server) GetProcedureManager ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.