xcodescannerpb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package xcodescannerpb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterXCodeScannerServiceHandler

func RegisterXCodeScannerServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterXCodeScannerServiceHandler registers the http handlers for service XCodeScannerService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterXCodeScannerServiceHandlerClient

func RegisterXCodeScannerServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client XCodeScannerServiceClient) error

RegisterXCodeScannerServiceHandlerClient registers the http handlers for service XCodeScannerService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "XCodeScannerServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "XCodeScannerServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "XCodeScannerServiceClient" to call the correct interceptors.

func RegisterXCodeScannerServiceHandlerFromEndpoint

func RegisterXCodeScannerServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterXCodeScannerServiceHandlerFromEndpoint is same as RegisterXCodeScannerServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterXCodeScannerServiceHandlerServer

func RegisterXCodeScannerServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server XCodeScannerServiceServer) error

RegisterXCodeScannerServiceHandlerServer registers the http handlers for service XCodeScannerService to "mux". UnaryRPC :call XCodeScannerServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterXCodeScannerServiceServer

func RegisterXCodeScannerServiceServer(s *grpc.Server, srv XCodeScannerServiceServer)

Types

type GetScanDataRequest

type GetScanDataRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetScanDataRequest) Descriptor

func (*GetScanDataRequest) Descriptor() ([]byte, []int)

func (*GetScanDataRequest) ProtoMessage

func (*GetScanDataRequest) ProtoMessage()

func (*GetScanDataRequest) Reset

func (m *GetScanDataRequest) Reset()

func (*GetScanDataRequest) String

func (m *GetScanDataRequest) String() string

func (*GetScanDataRequest) XXX_DiscardUnknown

func (m *GetScanDataRequest) XXX_DiscardUnknown()

func (*GetScanDataRequest) XXX_Marshal

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

func (*GetScanDataRequest) XXX_Merge

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

func (*GetScanDataRequest) XXX_Size

func (m *GetScanDataRequest) XXX_Size() int

func (*GetScanDataRequest) XXX_Unmarshal

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

type GetScanDataResponse

type GetScanDataResponse struct {
	Content              string   `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

扫码结果

func (*GetScanDataResponse) Descriptor

func (*GetScanDataResponse) Descriptor() ([]byte, []int)

func (*GetScanDataResponse) GetContent

func (m *GetScanDataResponse) GetContent() string

func (*GetScanDataResponse) ProtoMessage

func (*GetScanDataResponse) ProtoMessage()

func (*GetScanDataResponse) Reset

func (m *GetScanDataResponse) Reset()

func (*GetScanDataResponse) String

func (m *GetScanDataResponse) String() string

func (*GetScanDataResponse) XXX_DiscardUnknown

func (m *GetScanDataResponse) XXX_DiscardUnknown()

func (*GetScanDataResponse) XXX_Marshal

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

func (*GetScanDataResponse) XXX_Merge

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

func (*GetScanDataResponse) XXX_Size

func (m *GetScanDataResponse) XXX_Size() int

func (*GetScanDataResponse) XXX_Unmarshal

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

type UnimplementedXCodeScannerServiceServer

type UnimplementedXCodeScannerServiceServer struct {
}

UnimplementedXCodeScannerServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedXCodeScannerServiceServer) GetScanData

type XCodeScannerServiceClient

type XCodeScannerServiceClient interface {
	// GetScanData 监听扫码设备数据
	//
	// 支持读取常用的二维码,BarCode
	//
	// 开发管理平台功能参考: http://10.10.10.2/xcode_scanner
	GetScanData(ctx context.Context, in *GetScanDataRequest, opts ...grpc.CallOption) (XCodeScannerService_GetScanDataClient, error)
}

XCodeScannerServiceClient is the client API for XCodeScannerService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type XCodeScannerServiceServer

type XCodeScannerServiceServer interface {
	// GetScanData 监听扫码设备数据
	//
	// 支持读取常用的二维码,BarCode
	//
	// 开发管理平台功能参考: http://10.10.10.2/xcode_scanner
	GetScanData(*GetScanDataRequest, XCodeScannerService_GetScanDataServer) error
}

XCodeScannerServiceServer is the server API for XCodeScannerService service.

type XCodeScannerService_GetScanDataClient

type XCodeScannerService_GetScanDataClient interface {
	Recv() (*GetScanDataResponse, error)
	grpc.ClientStream
}

type XCodeScannerService_GetScanDataServer

type XCodeScannerService_GetScanDataServer interface {
	Send(*GetScanDataResponse) error
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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