Documentation ¶
Overview ¶
Code generated by atomix-go-framework. DO NOT EDIT.
Code generated by atomix-go-framework. DO NOT EDIT.
Index ¶
- func NewProxyServer(registry *ProxyRegistry, env env.DriverEnv) election.LeaderElectionServiceServer
- type ProxyRegistry
- type ProxyServer
- func (s *ProxyServer) Anoint(ctx context.Context, request *election.AnointRequest) (*election.AnointResponse, error)
- func (s *ProxyServer) Enter(ctx context.Context, request *election.EnterRequest) (*election.EnterResponse, error)
- func (s *ProxyServer) Events(request *election.EventsRequest, ...) error
- func (s *ProxyServer) Evict(ctx context.Context, request *election.EvictRequest) (*election.EvictResponse, error)
- func (s *ProxyServer) GetTerm(ctx context.Context, request *election.GetTermRequest) (*election.GetTermResponse, error)
- func (s *ProxyServer) Promote(ctx context.Context, request *election.PromoteRequest) (*election.PromoteResponse, error)
- func (s *ProxyServer) Withdraw(ctx context.Context, request *election.WithdrawRequest) (*election.WithdrawResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProxyServer ¶
func NewProxyServer(registry *ProxyRegistry, env env.DriverEnv) election.LeaderElectionServiceServer
NewProxyServer creates a new ProxyServer
Types ¶
type ProxyRegistry ¶
type ProxyRegistry struct {
// contains filtered or unexported fields
}
func NewProxyRegistry ¶
func NewProxyRegistry() *ProxyRegistry
NewProxyRegistry creates a new ProxyRegistry
func (*ProxyRegistry) AddProxy ¶
func (r *ProxyRegistry) AddProxy(id primitiveapi.PrimitiveId, server election.LeaderElectionServiceServer) error
func (*ProxyRegistry) GetProxy ¶
func (r *ProxyRegistry) GetProxy(id primitiveapi.PrimitiveId) (election.LeaderElectionServiceServer, error)
func (*ProxyRegistry) RemoveProxy ¶
func (r *ProxyRegistry) RemoveProxy(id primitiveapi.PrimitiveId) error
type ProxyServer ¶
type ProxyServer struct {
// contains filtered or unexported fields
}
func (*ProxyServer) Anoint ¶
func (s *ProxyServer) Anoint(ctx context.Context, request *election.AnointRequest) (*election.AnointResponse, error)
func (*ProxyServer) Enter ¶
func (s *ProxyServer) Enter(ctx context.Context, request *election.EnterRequest) (*election.EnterResponse, error)
func (*ProxyServer) Events ¶
func (s *ProxyServer) Events(request *election.EventsRequest, srv election.LeaderElectionService_EventsServer) error
func (*ProxyServer) Evict ¶
func (s *ProxyServer) Evict(ctx context.Context, request *election.EvictRequest) (*election.EvictResponse, error)
func (*ProxyServer) GetTerm ¶
func (s *ProxyServer) GetTerm(ctx context.Context, request *election.GetTermRequest) (*election.GetTermResponse, error)
func (*ProxyServer) Promote ¶
func (s *ProxyServer) Promote(ctx context.Context, request *election.PromoteRequest) (*election.PromoteResponse, error)
func (*ProxyServer) Withdraw ¶
func (s *ProxyServer) Withdraw(ctx context.Context, request *election.WithdrawRequest) (*election.WithdrawResponse, error)
Click to show internal directories.
Click to hide internal directories.