simplepb

package
v0.122.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_simplegrpc_proto protoreflect.FileDescriptor

Functions

func RegisterSimpleGrpcServer

func RegisterSimpleGrpcServer(s *grpc.Server, srv SimpleGrpcServer)

Types

type GetStuffRequest

type GetStuffRequest struct {
	InnerStuff     string `protobuf:"bytes,1,opt,name=innerStuff,proto3" json:"innerStuff,omitempty"`
	SensitiveStuff string `protobuf:"bytes,2,opt,name=sensitiveStuff,proto3" json:"sensitiveStuff,omitempty"`
	TimeStuff      string `protobuf:"bytes,3,opt,name=timeStuff,proto3" json:"timeStuff,omitempty"`
	// contains filtered or unexported fields
}

func (*GetStuffRequest) Descriptor deprecated

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

Deprecated: Use GetStuffRequest.ProtoReflect.Descriptor instead.

func (*GetStuffRequest) GetInnerStuff

func (x *GetStuffRequest) GetInnerStuff() string

func (*GetStuffRequest) GetSensitiveStuff

func (x *GetStuffRequest) GetSensitiveStuff() string

func (*GetStuffRequest) GetTimeStuff

func (x *GetStuffRequest) GetTimeStuff() string

func (*GetStuffRequest) ProtoMessage

func (*GetStuffRequest) ProtoMessage()

func (*GetStuffRequest) ProtoReflect added in v0.81.0

func (x *GetStuffRequest) ProtoReflect() protoreflect.Message

func (*GetStuffRequest) Reset

func (x *GetStuffRequest) Reset()

func (*GetStuffRequest) String

func (x *GetStuffRequest) String() string

type GetStuffResponse

type GetStuffResponse struct {
	Data []*Item `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetStuffResponse) Descriptor deprecated

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

Deprecated: Use GetStuffResponse.ProtoReflect.Descriptor instead.

func (*GetStuffResponse) GetData

func (x *GetStuffResponse) GetData() []*Item

func (*GetStuffResponse) ProtoMessage

func (*GetStuffResponse) ProtoMessage()

func (*GetStuffResponse) ProtoReflect added in v0.81.0

func (x *GetStuffResponse) ProtoReflect() protoreflect.Message

func (*GetStuffResponse) Reset

func (x *GetStuffResponse) Reset()

func (*GetStuffResponse) String

func (x *GetStuffResponse) String() string

type Item

type Item struct {
	Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	A1   string `protobuf:"bytes,2,opt,name=A1,proto3" json:"A1,omitempty"`
	A2   string `protobuf:"bytes,3,opt,name=A2,proto3" json:"A2,omitempty"`
	// contains filtered or unexported fields
}

func (*Item) Descriptor deprecated

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

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetA1

func (x *Item) GetA1() string

func (*Item) GetA2

func (x *Item) GetA2() string

func (*Item) GetName

func (x *Item) GetName() string

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect added in v0.81.0

func (x *Item) ProtoReflect() protoreflect.Message

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

type SimpleGrpcClient

type SimpleGrpcClient interface {
	GetStuff(ctx context.Context, in *GetStuffRequest, opts ...grpc.CallOption) (*GetStuffResponse, error)
}

SimpleGrpcClient is the client API for SimpleGrpc service.

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

func NewSimpleGrpcClient

func NewSimpleGrpcClient(cc grpc.ClientConnInterface) SimpleGrpcClient

type SimpleGrpcServer

type SimpleGrpcServer interface {
	GetStuff(context.Context, *GetStuffRequest) (*GetStuffResponse, error)
}

SimpleGrpcServer is the server API for SimpleGrpc service.

type UnimplementedSimpleGrpcServer

type UnimplementedSimpleGrpcServer struct {
}

UnimplementedSimpleGrpcServer can be embedded to have forward compatible implementations.

func (*UnimplementedSimpleGrpcServer) GetStuff

Jump to

Keyboard shortcuts

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