grpcbin

package
v0.0.0-...-bca18df Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 5 Imported by: 8

Documentation

Overview

Package grpcbin is a generated protocol buffer package.

It is generated from these files:

grpcbin.proto

It has these top-level messages:

HeadersMessage
SpecificErrorRequest
EmptyMessage
DummyMessage
IndexReply

Index

Constants

This section is empty.

Variables

View Source
var DummyMessage_Enum_name = map[int32]string{
	0: "ENUM_0",
	1: "ENUM_1",
	2: "ENUM_2",
}
View Source
var DummyMessage_Enum_value = map[string]int32{
	"ENUM_0": 0,
	"ENUM_1": 1,
	"ENUM_2": 2,
}
View Source
var GRPCBin_serviceDesc = _GRPCBin_serviceDesc

Functions

func RegisterGRPCBinServer

func RegisterGRPCBinServer(s *grpc.Server, srv GRPCBinServer)

Types

type DummyMessage

type DummyMessage struct {
	FString  string              `protobuf:"bytes,1,opt,name=f_string,json=fString" json:"f_string,omitempty"`
	FStrings []string            `protobuf:"bytes,2,rep,name=f_strings,json=fStrings" json:"f_strings,omitempty"`
	FInt32   int32               `protobuf:"varint,3,opt,name=f_int32,json=fInt32" json:"f_int32,omitempty"`
	FInt32S  []int32             `protobuf:"varint,4,rep,packed,name=f_int32s,json=fInt32s" json:"f_int32s,omitempty"`
	FEnum    DummyMessage_Enum   `protobuf:"varint,5,opt,name=f_enum,json=fEnum,enum=grpcbin.DummyMessage_Enum" json:"f_enum,omitempty"`
	FEnums   []DummyMessage_Enum `protobuf:"varint,6,rep,packed,name=f_enums,json=fEnums,enum=grpcbin.DummyMessage_Enum" json:"f_enums,omitempty"`
	FSub     *DummyMessage_Sub   `protobuf:"bytes,7,opt,name=f_sub,json=fSub" json:"f_sub,omitempty"`
	FSubs    []*DummyMessage_Sub `protobuf:"bytes,8,rep,name=f_subs,json=fSubs" json:"f_subs,omitempty"`
	FBool    bool                `protobuf:"varint,9,opt,name=f_bool,json=fBool" json:"f_bool,omitempty"`
	FBools   []bool              `protobuf:"varint,10,rep,packed,name=f_bools,json=fBools" json:"f_bools,omitempty"`
	FInt64   int64               `protobuf:"varint,11,opt,name=f_int64,json=fInt64" json:"f_int64,omitempty"`
	FInt64S  []int64             `protobuf:"varint,12,rep,packed,name=f_int64s,json=fInt64s" json:"f_int64s,omitempty"`
	FBytes   []byte              `protobuf:"bytes,13,opt,name=f_bytes,json=fBytes,proto3" json:"f_bytes,omitempty"`
	FBytess  [][]byte            `protobuf:"bytes,14,rep,name=f_bytess,json=fBytess,proto3" json:"f_bytess,omitempty"`
	FFloat   float32             `protobuf:"fixed32,15,opt,name=f_float,json=fFloat" json:"f_float,omitempty"`
	FFloats  []float32           `protobuf:"fixed32,16,rep,packed,name=f_floats,json=fFloats" json:"f_floats,omitempty"`
}

func (*DummyMessage) Descriptor

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

func (*DummyMessage) GetFBool

func (m *DummyMessage) GetFBool() bool

func (*DummyMessage) GetFBools

func (m *DummyMessage) GetFBools() []bool

func (*DummyMessage) GetFBytes

func (m *DummyMessage) GetFBytes() []byte

func (*DummyMessage) GetFBytess

func (m *DummyMessage) GetFBytess() [][]byte

func (*DummyMessage) GetFEnum

func (m *DummyMessage) GetFEnum() DummyMessage_Enum

func (*DummyMessage) GetFEnums

func (m *DummyMessage) GetFEnums() []DummyMessage_Enum

func (*DummyMessage) GetFFloat

func (m *DummyMessage) GetFFloat() float32

func (*DummyMessage) GetFFloats

func (m *DummyMessage) GetFFloats() []float32

func (*DummyMessage) GetFInt32

func (m *DummyMessage) GetFInt32() int32

func (*DummyMessage) GetFInt32S

func (m *DummyMessage) GetFInt32S() []int32

func (*DummyMessage) GetFInt64

func (m *DummyMessage) GetFInt64() int64

func (*DummyMessage) GetFInt64S

func (m *DummyMessage) GetFInt64S() []int64

func (*DummyMessage) GetFString

func (m *DummyMessage) GetFString() string

func (*DummyMessage) GetFStrings

func (m *DummyMessage) GetFStrings() []string

func (*DummyMessage) GetFSub

func (m *DummyMessage) GetFSub() *DummyMessage_Sub

func (*DummyMessage) GetFSubs

func (m *DummyMessage) GetFSubs() []*DummyMessage_Sub

func (*DummyMessage) ProtoMessage

func (*DummyMessage) ProtoMessage()

func (*DummyMessage) Reset

func (m *DummyMessage) Reset()

func (*DummyMessage) String

func (m *DummyMessage) String() string

type DummyMessage_Enum

type DummyMessage_Enum int32
const (
	DummyMessage_ENUM_0 DummyMessage_Enum = 0
	DummyMessage_ENUM_1 DummyMessage_Enum = 1
	DummyMessage_ENUM_2 DummyMessage_Enum = 2
)

func (DummyMessage_Enum) EnumDescriptor

func (DummyMessage_Enum) EnumDescriptor() ([]byte, []int)

func (DummyMessage_Enum) String

func (x DummyMessage_Enum) String() string

type DummyMessage_Sub

type DummyMessage_Sub struct {
	FString string `protobuf:"bytes,1,opt,name=f_string,json=fString" json:"f_string,omitempty"`
}

func (*DummyMessage_Sub) Descriptor

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

func (*DummyMessage_Sub) GetFString

func (m *DummyMessage_Sub) GetFString() string

func (*DummyMessage_Sub) ProtoMessage

func (*DummyMessage_Sub) ProtoMessage()

func (*DummyMessage_Sub) Reset

func (m *DummyMessage_Sub) Reset()

func (*DummyMessage_Sub) String

func (m *DummyMessage_Sub) String() string

type EmptyMessage

type EmptyMessage struct {
}

func (*EmptyMessage) Descriptor

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

func (*EmptyMessage) ProtoMessage

func (*EmptyMessage) ProtoMessage()

func (*EmptyMessage) Reset

func (m *EmptyMessage) Reset()

func (*EmptyMessage) String

func (m *EmptyMessage) String() string

type GRPCBinClient

type GRPCBinClient interface {
	// This endpoint
	Index(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*IndexReply, error)
	// Unary endpoint that takes no argument and replies an empty message.
	Empty(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*EmptyMessage, error)
	// Unary endpoint that replies a received DummyMessage
	DummyUnary(ctx context.Context, in *DummyMessage, opts ...grpc.CallOption) (*DummyMessage, error)
	// Stream endpoint that sends back 10 times the received DummyMessage
	DummyServerStream(ctx context.Context, in *DummyMessage, opts ...grpc.CallOption) (GRPCBin_DummyServerStreamClient, error)
	// Stream endpoint that receives 10 DummyMessages and replies with the last received one
	DummyClientStream(ctx context.Context, opts ...grpc.CallOption) (GRPCBin_DummyClientStreamClient, error)
	// Stream endpoint that sends back a received DummyMessage indefinitely (chat mode)
	DummyBidirectionalStreamStream(ctx context.Context, opts ...grpc.CallOption) (GRPCBin_DummyBidirectionalStreamStreamClient, error)
	// Unary endpoint that raises a specified (by code) gRPC error
	SpecificError(ctx context.Context, in *SpecificErrorRequest, opts ...grpc.CallOption) (*EmptyMessage, error)
	// Unary endpoint that raises a random gRPC error
	RandomError(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*EmptyMessage, error)
	// Unary endpoint that returns headers
	HeadersUnary(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*HeadersMessage, error)
	// Unary endpoint that returns no respnose
	NoResponseUnary(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (*EmptyMessage, error)
}

func NewGRPCBinClient

func NewGRPCBinClient(cc *grpc.ClientConn) GRPCBinClient

type GRPCBinServer

type GRPCBinServer interface {
	// This endpoint
	Index(context.Context, *EmptyMessage) (*IndexReply, error)
	// Unary endpoint that takes no argument and replies an empty message.
	Empty(context.Context, *EmptyMessage) (*EmptyMessage, error)
	// Unary endpoint that replies a received DummyMessage
	DummyUnary(context.Context, *DummyMessage) (*DummyMessage, error)
	// Stream endpoint that sends back 10 times the received DummyMessage
	DummyServerStream(*DummyMessage, GRPCBin_DummyServerStreamServer) error
	// Stream endpoint that receives 10 DummyMessages and replies with the last received one
	DummyClientStream(GRPCBin_DummyClientStreamServer) error
	// Stream endpoint that sends back a received DummyMessage indefinitely (chat mode)
	DummyBidirectionalStreamStream(GRPCBin_DummyBidirectionalStreamStreamServer) error
	// Unary endpoint that raises a specified (by code) gRPC error
	SpecificError(context.Context, *SpecificErrorRequest) (*EmptyMessage, error)
	// Unary endpoint that raises a random gRPC error
	RandomError(context.Context, *EmptyMessage) (*EmptyMessage, error)
	// Unary endpoint that returns headers
	HeadersUnary(context.Context, *EmptyMessage) (*HeadersMessage, error)
	// Unary endpoint that returns no respnose
	NoResponseUnary(context.Context, *EmptyMessage) (*EmptyMessage, error)
}

type GRPCBin_DummyBidirectionalStreamStreamClient

type GRPCBin_DummyBidirectionalStreamStreamClient interface {
	Send(*DummyMessage) error
	Recv() (*DummyMessage, error)
	grpc.ClientStream
}

type GRPCBin_DummyBidirectionalStreamStreamServer

type GRPCBin_DummyBidirectionalStreamStreamServer interface {
	Send(*DummyMessage) error
	Recv() (*DummyMessage, error)
	grpc.ServerStream
}

type GRPCBin_DummyClientStreamClient

type GRPCBin_DummyClientStreamClient interface {
	Send(*DummyMessage) error
	CloseAndRecv() (*DummyMessage, error)
	grpc.ClientStream
}

type GRPCBin_DummyClientStreamServer

type GRPCBin_DummyClientStreamServer interface {
	SendAndClose(*DummyMessage) error
	Recv() (*DummyMessage, error)
	grpc.ServerStream
}

type GRPCBin_DummyServerStreamClient

type GRPCBin_DummyServerStreamClient interface {
	Recv() (*DummyMessage, error)
	grpc.ClientStream
}

type GRPCBin_DummyServerStreamServer

type GRPCBin_DummyServerStreamServer interface {
	Send(*DummyMessage) error
	grpc.ServerStream
}

type HeadersMessage

type HeadersMessage struct {
	Metadata map[string]*HeadersMessage_Values `` /* 136-byte string literal not displayed */
}

func (*HeadersMessage) Descriptor

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

func (*HeadersMessage) GetMetadata

func (m *HeadersMessage) GetMetadata() map[string]*HeadersMessage_Values

func (*HeadersMessage) ProtoMessage

func (*HeadersMessage) ProtoMessage()

func (*HeadersMessage) Reset

func (m *HeadersMessage) Reset()

func (*HeadersMessage) String

func (m *HeadersMessage) String() string

type HeadersMessage_Values

type HeadersMessage_Values struct {
	Values []string `protobuf:"bytes,1,rep,name=values" json:"values,omitempty"`
}

func (*HeadersMessage_Values) Descriptor

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

func (*HeadersMessage_Values) GetValues

func (m *HeadersMessage_Values) GetValues() []string

func (*HeadersMessage_Values) ProtoMessage

func (*HeadersMessage_Values) ProtoMessage()

func (*HeadersMessage_Values) Reset

func (m *HeadersMessage_Values) Reset()

func (*HeadersMessage_Values) String

func (m *HeadersMessage_Values) String() string

type IndexReply

type IndexReply struct {
	Description string                 `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"`
	Endpoints   []*IndexReply_Endpoint `protobuf:"bytes,2,rep,name=endpoints" json:"endpoints,omitempty"`
}

func (*IndexReply) Descriptor

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

func (*IndexReply) GetDescription

func (m *IndexReply) GetDescription() string

func (*IndexReply) GetEndpoints

func (m *IndexReply) GetEndpoints() []*IndexReply_Endpoint

func (*IndexReply) ProtoMessage

func (*IndexReply) ProtoMessage()

func (*IndexReply) Reset

func (m *IndexReply) Reset()

func (*IndexReply) String

func (m *IndexReply) String() string

type IndexReply_Endpoint

type IndexReply_Endpoint struct {
	Path        string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
}

func (*IndexReply_Endpoint) Descriptor

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

func (*IndexReply_Endpoint) GetDescription

func (m *IndexReply_Endpoint) GetDescription() string

func (*IndexReply_Endpoint) GetPath

func (m *IndexReply_Endpoint) GetPath() string

func (*IndexReply_Endpoint) ProtoMessage

func (*IndexReply_Endpoint) ProtoMessage()

func (*IndexReply_Endpoint) Reset

func (m *IndexReply_Endpoint) Reset()

func (*IndexReply_Endpoint) String

func (m *IndexReply_Endpoint) String() string

type SpecificErrorRequest

type SpecificErrorRequest struct {
	Code   uint32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	Reason string `protobuf:"bytes,2,opt,name=reason" json:"reason,omitempty"`
}

func (*SpecificErrorRequest) Descriptor

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

func (*SpecificErrorRequest) GetCode

func (m *SpecificErrorRequest) GetCode() uint32

func (*SpecificErrorRequest) GetReason

func (m *SpecificErrorRequest) GetReason() string

func (*SpecificErrorRequest) ProtoMessage

func (*SpecificErrorRequest) ProtoMessage()

func (*SpecificErrorRequest) Reset

func (m *SpecificErrorRequest) Reset()

func (*SpecificErrorRequest) String

func (m *SpecificErrorRequest) String() string

Jump to

Keyboard shortcuts

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