Documentation ¶
Index ¶
- Variables
- func RegisterQrServiceServer(s *grpc.Server, srv QrServiceServer)
- type QrServiceClient
- type QrServiceServer
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetData() string
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetData() string
- func (m *Response) GetStatus() *StatusData
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type StatusData
- func (*StatusData) Descriptor() ([]byte, []int)
- func (m *StatusData) GetMsg() string
- func (m *StatusData) GetStatus() StatusData_Status
- func (*StatusData) ProtoMessage()
- func (m *StatusData) Reset()
- func (m *StatusData) String() string
- func (m *StatusData) XXX_DiscardUnknown()
- func (m *StatusData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StatusData) XXX_Merge(src proto.Message)
- func (m *StatusData) XXX_Size() int
- func (m *StatusData) XXX_Unmarshal(b []byte) error
- type StatusData_Status
- type UnimplementedQrServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var StatusData_Status_name = map[int32]string{
0: "SUCCEED",
1: "ERROR",
}
View Source
var StatusData_Status_value = map[string]int32{
"SUCCEED": 0,
"ERROR": 1,
}
Functions ¶
func RegisterQrServiceServer ¶
func RegisterQrServiceServer(s *grpc.Server, srv QrServiceServer)
Types ¶
type QrServiceClient ¶
type QrServiceClient interface {
Encode(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
QrServiceClient is the client API for QrService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQrServiceClient ¶
func NewQrServiceClient(cc *grpc.ClientConn) QrServiceClient
type QrServiceServer ¶
QrServiceServer is the server API for QrService service.
type Request ¶
type Request struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { Status *StatusData `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) GetStatus ¶
func (m *Response) GetStatus() *StatusData
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type StatusData ¶
type StatusData struct { Status StatusData_Status `protobuf:"varint,1,opt,name=status,proto3,enum=qrcodegeneratordeclare.StatusData_Status" json:"status,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StatusData) Descriptor ¶
func (*StatusData) Descriptor() ([]byte, []int)
func (*StatusData) GetMsg ¶
func (m *StatusData) GetMsg() string
func (*StatusData) GetStatus ¶
func (m *StatusData) GetStatus() StatusData_Status
func (*StatusData) ProtoMessage ¶
func (*StatusData) ProtoMessage()
func (*StatusData) Reset ¶
func (m *StatusData) Reset()
func (*StatusData) String ¶
func (m *StatusData) String() string
func (*StatusData) XXX_DiscardUnknown ¶
func (m *StatusData) XXX_DiscardUnknown()
func (*StatusData) XXX_Marshal ¶
func (m *StatusData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StatusData) XXX_Merge ¶
func (m *StatusData) XXX_Merge(src proto.Message)
func (*StatusData) XXX_Size ¶
func (m *StatusData) XXX_Size() int
func (*StatusData) XXX_Unmarshal ¶
func (m *StatusData) XXX_Unmarshal(b []byte) error
type StatusData_Status ¶
type StatusData_Status int32
const ( StatusData_SUCCEED StatusData_Status = 0 StatusData_ERROR StatusData_Status = 1 )
func (StatusData_Status) EnumDescriptor ¶
func (StatusData_Status) EnumDescriptor() ([]byte, []int)
func (StatusData_Status) String ¶
func (x StatusData_Status) String() string
type UnimplementedQrServiceServer ¶
type UnimplementedQrServiceServer struct { }
UnimplementedQrServiceServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.