lock

package
v0.10.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by atomix-go-framework. DO NOT EDIT.

Code generated by atomix-go-framework. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxyServer

func NewProxyServer(registry *ProxyRegistry, env env.DriverEnv) lock.LockServiceServer

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 (*ProxyRegistry) GetProxy

func (*ProxyRegistry) RemoveProxy

func (r *ProxyRegistry) RemoveProxy(id primitiveapi.PrimitiveId) error

type ProxyServer

type ProxyServer struct {
	// contains filtered or unexported fields
}

func (*ProxyServer) GetLock

func (s *ProxyServer) GetLock(ctx context.Context, request *lock.GetLockRequest) (*lock.GetLockResponse, error)

func (*ProxyServer) Lock

func (s *ProxyServer) Lock(ctx context.Context, request *lock.LockRequest) (*lock.LockResponse, error)

func (*ProxyServer) Unlock

func (s *ProxyServer) Unlock(ctx context.Context, request *lock.UnlockRequest) (*lock.UnlockResponse, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL