Documentation
¶
Index ¶
- func NewProxyServer(s lockapi.LockServiceServer) lockapi.LockServiceServer
- type ProxyServer
- func (s *ProxyServer) GetLock(ctx context.Context, request *lockapi.GetLockRequest) (*lockapi.GetLockResponse, error)
- func (s *ProxyServer) Lock(ctx context.Context, request *lockapi.LockRequest) (*lockapi.LockResponse, error)
- func (s *ProxyServer) Unlock(ctx context.Context, request *lockapi.UnlockRequest) (*lockapi.UnlockResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProxyServer ¶
func NewProxyServer(s lockapi.LockServiceServer) lockapi.LockServiceServer
NewProxyServer creates a new read-only lock server
Types ¶
type ProxyServer ¶
type ProxyServer struct {
// contains filtered or unexported fields
}
ProxyServer is a read-only lock primitive server
func (*ProxyServer) GetLock ¶
func (s *ProxyServer) GetLock(ctx context.Context, request *lockapi.GetLockRequest) (*lockapi.GetLockResponse, error)
func (*ProxyServer) Lock ¶
func (s *ProxyServer) Lock(ctx context.Context, request *lockapi.LockRequest) (*lockapi.LockResponse, error)
func (*ProxyServer) Unlock ¶
func (s *ProxyServer) Unlock(ctx context.Context, request *lockapi.UnlockRequest) (*lockapi.UnlockResponse, error)
Click to show internal directories.
Click to hide internal directories.