Documentation
¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
services/device/transport/pb/svcdevice.proto
It has these top-level messages:
UnlockRequest UnlockResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDeviceServer ¶
func RegisterDeviceServer(s *grpc.Server, srv DeviceServer)
Types ¶
type DeviceClient ¶
type DeviceClient interface {
Unlock(ctx context.Context, in *UnlockRequest, opts ...grpc.CallOption) (*UnlockResponse, error)
}
func NewDeviceClient ¶
func NewDeviceClient(cc *grpc.ClientConn) DeviceClient
type DeviceServer ¶
type DeviceServer interface {
Unlock(context.Context, *UnlockRequest) (*UnlockResponse, error)
}
type UnlockRequest ¶
type UnlockRequest struct { EventId []byte `protobuf:"bytes,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` DeviceId []byte `protobuf:"bytes,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` Code string `protobuf:"bytes,3,opt,name=code" json:"code,omitempty"` }
func (*UnlockRequest) Descriptor ¶
func (*UnlockRequest) Descriptor() ([]byte, []int)
func (*UnlockRequest) GetCode ¶
func (m *UnlockRequest) GetCode() string
func (*UnlockRequest) GetDeviceId ¶
func (m *UnlockRequest) GetDeviceId() []byte
func (*UnlockRequest) GetEventId ¶
func (m *UnlockRequest) GetEventId() []byte
func (*UnlockRequest) ProtoMessage ¶
func (*UnlockRequest) ProtoMessage()
func (*UnlockRequest) Reset ¶
func (m *UnlockRequest) Reset()
func (*UnlockRequest) String ¶
func (m *UnlockRequest) String() string
type UnlockResponse ¶
type UnlockResponse struct { EventCaption string `protobuf:"bytes,1,opt,name=event_caption,json=eventCaption" json:"event_caption,omitempty"` DeviceCaption string `protobuf:"bytes,2,opt,name=device_caption,json=deviceCaption" json:"device_caption,omitempty"` }
func (*UnlockResponse) Descriptor ¶
func (*UnlockResponse) Descriptor() ([]byte, []int)
func (*UnlockResponse) GetDeviceCaption ¶
func (m *UnlockResponse) GetDeviceCaption() string
func (*UnlockResponse) GetEventCaption ¶
func (m *UnlockResponse) GetEventCaption() string
func (*UnlockResponse) ProtoMessage ¶
func (*UnlockResponse) ProtoMessage()
func (*UnlockResponse) Reset ¶
func (m *UnlockResponse) Reset()
func (*UnlockResponse) String ¶
func (m *UnlockResponse) String() string
Click to show internal directories.
Click to hide internal directories.