Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_color_proto protoreflect.FileDescriptor
Functions ¶
func RegisterColorServiceServer ¶
func RegisterColorServiceServer(s grpc.ServiceRegistrar, srv ColorServiceServer)
Types ¶
type ColorServiceClient ¶
type ColorServiceClient interface {
GetColor(ctx context.Context, in *GetColorRequest, opts ...grpc.CallOption) (*GetColorResponse, error)
}
ColorServiceClient is the client API for ColorService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewColorServiceClient ¶
func NewColorServiceClient(cc grpc.ClientConnInterface) ColorServiceClient
type ColorServiceServer ¶
type ColorServiceServer interface { GetColor(context.Context, *GetColorRequest) (*GetColorResponse, error) // contains filtered or unexported methods }
ColorServiceServer is the server API for ColorService service. All implementations must embed UnimplementedColorServiceServer for forward compatibility
type GetColorRequest ¶
type GetColorRequest struct {
// contains filtered or unexported fields
}
func (*GetColorRequest) Descriptor
deprecated
func (*GetColorRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetColorRequest.ProtoReflect.Descriptor instead.
func (*GetColorRequest) ProtoMessage ¶
func (*GetColorRequest) ProtoMessage()
func (*GetColorRequest) ProtoReflect ¶
func (x *GetColorRequest) ProtoReflect() protoreflect.Message
func (*GetColorRequest) Reset ¶
func (x *GetColorRequest) Reset()
func (*GetColorRequest) String ¶
func (x *GetColorRequest) String() string
type GetColorResponse ¶
type GetColorResponse struct { Color string `protobuf:"bytes,1,opt,name=color,proto3" json:"color,omitempty"` // contains filtered or unexported fields }
func (*GetColorResponse) Descriptor
deprecated
func (*GetColorResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetColorResponse.ProtoReflect.Descriptor instead.
func (*GetColorResponse) GetColor ¶
func (x *GetColorResponse) GetColor() string
func (*GetColorResponse) ProtoMessage ¶
func (*GetColorResponse) ProtoMessage()
func (*GetColorResponse) ProtoReflect ¶
func (x *GetColorResponse) ProtoReflect() protoreflect.Message
func (*GetColorResponse) Reset ¶
func (x *GetColorResponse) Reset()
func (*GetColorResponse) String ¶
func (x *GetColorResponse) String() string
type UnimplementedColorServiceServer ¶
type UnimplementedColorServiceServer struct { }
UnimplementedColorServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedColorServiceServer) GetColor ¶
func (UnimplementedColorServiceServer) GetColor(context.Context, *GetColorRequest) (*GetColorResponse, error)
type UnsafeColorServiceServer ¶
type UnsafeColorServiceServer interface {
// contains filtered or unexported methods
}
UnsafeColorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ColorServiceServer will result in compilation errors.