Documentation ¶
Index ¶
- Variables
- type Server
- func (srv *Server) Close()
- func (srv *Server) GetClusterManager() cluster.Manager
- func (srv *Server) GetFlowLimiter() (*limiter.FlowLimiter, error)
- func (srv *Server) GetLeader(ctx context.Context) (member.GetLeaderAddrResp, error)
- 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") ErrFlowLimiterNotFound = coderr.NewCodeError(coderr.Internal, "flow limiter not found") )
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) GetFlowLimiter ¶ added in v1.2.1
func (srv *Server) GetFlowLimiter() (*limiter.FlowLimiter, error)
Click to show internal directories.
Click to hide internal directories.