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) leader.LeaderLatchServiceServer
- type ProxyRegistry
- type ProxyServer
- func (s *ProxyServer) Events(request *leader.EventsRequest, srv leader.LeaderLatchService_EventsServer) error
- func (s *ProxyServer) Get(ctx context.Context, request *leader.GetRequest) (*leader.GetResponse, error)
- func (s *ProxyServer) Latch(ctx context.Context, request *leader.LatchRequest) (*leader.LatchResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProxyServer ¶
func NewProxyServer(registry *ProxyRegistry, env env.DriverEnv) leader.LeaderLatchServiceServer
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 leader.LeaderLatchServiceServer) error
func (*ProxyRegistry) GetProxy ¶
func (r *ProxyRegistry) GetProxy(id primitiveapi.PrimitiveId) (leader.LeaderLatchServiceServer, error)
func (*ProxyRegistry) RemoveProxy ¶
func (r *ProxyRegistry) RemoveProxy(id primitiveapi.PrimitiveId) error
type ProxyServer ¶
type ProxyServer struct {
// contains filtered or unexported fields
}
func (*ProxyServer) Events ¶
func (s *ProxyServer) Events(request *leader.EventsRequest, srv leader.LeaderLatchService_EventsServer) error
func (*ProxyServer) Get ¶
func (s *ProxyServer) Get(ctx context.Context, request *leader.GetRequest) (*leader.GetResponse, error)
func (*ProxyServer) Latch ¶
func (s *ProxyServer) Latch(ctx context.Context, request *leader.LatchRequest) (*leader.LatchResponse, error)
Click to show internal directories.
Click to hide internal directories.