Documentation ¶
Overview ¶
Package disposable is a generated protocol buffer package.
It is generated from these files:
protos/errors.proto protos/service.proto
It has these top-level messages:
Error DisposableRequest DisposableResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDisposableServiceServer ¶
func RegisterDisposableServiceServer(s *grpc.Server, srv DisposableServiceServer)
Types ¶
type DisposableRequest ¶
type DisposableRequest struct {
Email string `protobuf:"bytes,1,opt,name=email" json:"email,omitempty"`
}
func (*DisposableRequest) Descriptor ¶
func (*DisposableRequest) Descriptor() ([]byte, []int)
func (*DisposableRequest) ProtoMessage ¶
func (*DisposableRequest) ProtoMessage()
func (*DisposableRequest) Reset ¶
func (m *DisposableRequest) Reset()
func (*DisposableRequest) String ¶
func (m *DisposableRequest) String() string
type DisposableResponse ¶
type DisposableResponse struct { Status bool `protobuf:"varint,1,opt,name=status" json:"status"` RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId" json:"request_id,omitempty"` Error *Error `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` }
func (*DisposableResponse) Descriptor ¶
func (*DisposableResponse) Descriptor() ([]byte, []int)
func (*DisposableResponse) GetError ¶
func (m *DisposableResponse) GetError() *Error
func (*DisposableResponse) ProtoMessage ¶
func (*DisposableResponse) ProtoMessage()
func (*DisposableResponse) Reset ¶
func (m *DisposableResponse) Reset()
func (*DisposableResponse) String ¶
func (m *DisposableResponse) String() string
type DisposableServiceClient ¶
type DisposableServiceClient interface {
Verify(ctx context.Context, in *DisposableRequest, opts ...grpc.CallOption) (*DisposableResponse, error)
}
func NewDisposableServiceClient ¶
func NewDisposableServiceClient(cc *grpc.ClientConn) DisposableServiceClient
type DisposableServiceServer ¶
type DisposableServiceServer interface {
Verify(context.Context, *DisposableRequest) (*DisposableResponse, error)
}
type Error ¶
type Error struct { Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` Info map[string]string `` /* 128-byte string literal not displayed */ }
func NewError ¶
NewError - Will establish new error based on provided information. Function is here to provide unification layer.
func (*Error) Descriptor ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.