qrcodegeneratordeclare

package
v0.0.0-...-1410285 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

type QrServiceServer interface {
	Encode(context.Context, *Request) (*Response, error)
}

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) Descriptor() ([]byte, []int)

func (*Request) GetData

func (m *Request) GetData() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

func (m *Request) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Response) GetData

func (m *Response) GetData() string

func (*Response) GetStatus

func (m *Response) GetStatus() *StatusData

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Merge

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

func (m *Response) XXX_Unmarshal(b []byte) error

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.

func (*UnimplementedQrServiceServer) Encode

Jump to

Keyboard shortcuts

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