Documentation ¶
Index ¶
- Variables
- func RegisterSimpleGrpcServer(s *grpc.Server, srv SimpleGrpcServer)
- type GetStuffRequest
- func (*GetStuffRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetStuffRequest) GetInnerStuff() string
- func (x *GetStuffRequest) GetSensitiveStuff() string
- func (x *GetStuffRequest) GetTimeStuff() string
- func (*GetStuffRequest) ProtoMessage()
- func (x *GetStuffRequest) ProtoReflect() protoreflect.Message
- func (x *GetStuffRequest) Reset()
- func (x *GetStuffRequest) String() string
- type GetStuffResponse
- type Item
- type SimpleGrpcClient
- type SimpleGrpcServer
- type UnimplementedSimpleGrpcServer
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) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) ProtoReflect ¶ added in v0.81.0
func (x *Item) ProtoReflect() protoreflect.Message
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 ¶
func (*UnimplementedSimpleGrpcServer) GetStuff(context.Context, *GetStuffRequest) (*GetStuffResponse, error)
Click to show internal directories.
Click to hide internal directories.