Documentation
¶
Index ¶
- func RegisterLockerServer(s *grpc.Server, srv LockerServer)
- type LockRequest
- func (*LockRequest) Descriptor() ([]byte, []int)
- func (m *LockRequest) GetKey() string
- func (*LockRequest) ProtoMessage()
- func (m *LockRequest) Reset()
- func (m *LockRequest) String() string
- func (m *LockRequest) XXX_DiscardUnknown()
- func (m *LockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LockRequest) XXX_Merge(src proto.Message)
- func (m *LockRequest) XXX_Size() int
- func (m *LockRequest) XXX_Unmarshal(b []byte) error
- type LockerClient
- type LockerServer
- type UnimplementedLockerServer
- type UnlockRequest
- func (*UnlockRequest) Descriptor() ([]byte, []int)
- func (m *UnlockRequest) GetKey() string
- func (*UnlockRequest) ProtoMessage()
- func (m *UnlockRequest) Reset()
- func (m *UnlockRequest) String() string
- func (m *UnlockRequest) XXX_DiscardUnknown()
- func (m *UnlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnlockRequest) XXX_Merge(src proto.Message)
- func (m *UnlockRequest) XXX_Size() int
- func (m *UnlockRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLockerServer ¶
func RegisterLockerServer(s *grpc.Server, srv LockerServer)
Types ¶
type LockRequest ¶
type LockRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*LockRequest) Descriptor ¶
func (*LockRequest) Descriptor() ([]byte, []int)
func (*LockRequest) GetKey ¶
func (m *LockRequest) GetKey() string
func (*LockRequest) ProtoMessage ¶
func (*LockRequest) ProtoMessage()
func (*LockRequest) Reset ¶
func (m *LockRequest) Reset()
func (*LockRequest) String ¶
func (m *LockRequest) String() string
func (*LockRequest) XXX_DiscardUnknown ¶
func (m *LockRequest) XXX_DiscardUnknown()
func (*LockRequest) XXX_Marshal ¶
func (m *LockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LockRequest) XXX_Merge ¶
func (m *LockRequest) XXX_Merge(src proto.Message)
func (*LockRequest) XXX_Size ¶
func (m *LockRequest) XXX_Size() int
func (*LockRequest) XXX_Unmarshal ¶
func (m *LockRequest) XXX_Unmarshal(b []byte) error
type LockerClient ¶
type LockerClient interface {
Lock(ctx context.Context, in *LockRequest, opts ...grpc.CallOption) (*empty.Empty, error)
Unlock(ctx context.Context, in *UnlockRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
LockerClient is the client API for Locker service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLockerClient ¶
func NewLockerClient(cc *grpc.ClientConn) LockerClient
type LockerServer ¶
type LockerServer interface {
Lock(context.Context, *LockRequest) (*empty.Empty, error)
Unlock(context.Context, *UnlockRequest) (*empty.Empty, error)
}
LockerServer is the server API for Locker service.
type UnimplementedLockerServer ¶
type UnimplementedLockerServer struct {
}
UnimplementedLockerServer can be embedded to have forward compatible implementations.
func (*UnimplementedLockerServer) Lock ¶
func (*UnimplementedLockerServer) Lock(ctx context.Context, req *LockRequest) (*empty.Empty, error)
func (*UnimplementedLockerServer) Unlock ¶
func (*UnimplementedLockerServer) Unlock(ctx context.Context, req *UnlockRequest) (*empty.Empty, error)
type UnlockRequest ¶
type UnlockRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*UnlockRequest) Descriptor ¶
func (*UnlockRequest) Descriptor() ([]byte, []int)
func (*UnlockRequest) GetKey ¶
func (m *UnlockRequest) GetKey() string
func (*UnlockRequest) ProtoMessage ¶
func (*UnlockRequest) ProtoMessage()
func (*UnlockRequest) Reset ¶
func (m *UnlockRequest) Reset()
func (*UnlockRequest) String ¶
func (m *UnlockRequest) String() string
func (*UnlockRequest) XXX_DiscardUnknown ¶
func (m *UnlockRequest) XXX_DiscardUnknown()
func (*UnlockRequest) XXX_Marshal ¶
func (m *UnlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnlockRequest) XXX_Merge ¶
func (m *UnlockRequest) XXX_Merge(src proto.Message)
func (*UnlockRequest) XXX_Size ¶
func (m *UnlockRequest) XXX_Size() int
func (*UnlockRequest) XXX_Unmarshal ¶
func (m *UnlockRequest) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.