Documentation
¶
Index ¶
- Variables
- func RegisterWeatherForecastServer(s grpc.ServiceRegistrar, srv WeatherForecastServer)
- type FillWeatherForecastRequest
- func (*FillWeatherForecastRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FillWeatherForecastRequest) GetCityName() string
- func (*FillWeatherForecastRequest) ProtoMessage()
- func (x *FillWeatherForecastRequest) ProtoReflect() protoreflect.Message
- func (x *FillWeatherForecastRequest) Reset()
- func (x *FillWeatherForecastRequest) String() string
- type GetWeatherForecastByCityNameRequest
- func (*GetWeatherForecastByCityNameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetWeatherForecastByCityNameRequest) GetCityName() string
- func (*GetWeatherForecastByCityNameRequest) ProtoMessage()
- func (x *GetWeatherForecastByCityNameRequest) ProtoReflect() protoreflect.Message
- func (x *GetWeatherForecastByCityNameRequest) Reset()
- func (x *GetWeatherForecastByCityNameRequest) String() string
- type GetWeatherForecastByCityNameResponse
- func (*GetWeatherForecastByCityNameResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetWeatherForecastByCityNameResponse) GetData() *WeatherForecastResult
- func (*GetWeatherForecastByCityNameResponse) ProtoMessage()
- func (x *GetWeatherForecastByCityNameResponse) ProtoReflect() protoreflect.Message
- func (x *GetWeatherForecastByCityNameResponse) Reset()
- func (x *GetWeatherForecastByCityNameResponse) String() string
- type UnimplementedWeatherForecastServer
- func (UnimplementedWeatherForecastServer) FillWeatherForecast(context.Context, *FillWeatherForecastRequest) (*empty.Empty, error)
- func (UnimplementedWeatherForecastServer) GetWeatherForecastByCityName(context.Context, *GetWeatherForecastByCityNameRequest) (*GetWeatherForecastByCityNameResponse, error)
- type UnsafeWeatherForecastServer
- type WeatherForecastClient
- type WeatherForecastResult
- func (*WeatherForecastResult) Descriptor() ([]byte, []int)deprecated
- func (x *WeatherForecastResult) GetResult() string
- func (*WeatherForecastResult) ProtoMessage()
- func (x *WeatherForecastResult) ProtoReflect() protoreflect.Message
- func (x *WeatherForecastResult) Reset()
- func (x *WeatherForecastResult) String() string
- type WeatherForecastServer
Constants ¶
This section is empty.
Variables ¶
var File_weatherforecast_proto protoreflect.FileDescriptor
var WeatherForecast_ServiceDesc = grpc.ServiceDesc{ ServiceName: "WeatherForecast", HandlerType: (*WeatherForecastServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetWeatherForecastByCityName", Handler: _WeatherForecast_GetWeatherForecastByCityName_Handler, }, { MethodName: "FillWeatherForecast", Handler: _WeatherForecast_FillWeatherForecast_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "weatherforecast.proto", }
WeatherForecast_ServiceDesc is the grpc.ServiceDesc for WeatherForecast service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWeatherForecastServer ¶
func RegisterWeatherForecastServer(s grpc.ServiceRegistrar, srv WeatherForecastServer)
Types ¶
type FillWeatherForecastRequest ¶
type FillWeatherForecastRequest struct { CityName string `protobuf:"bytes,1,opt,name=cityName,proto3" json:"cityName,omitempty"` // contains filtered or unexported fields }
func (*FillWeatherForecastRequest) Descriptor
deprecated
func (*FillWeatherForecastRequest) Descriptor() ([]byte, []int)
Deprecated: Use FillWeatherForecastRequest.ProtoReflect.Descriptor instead.
func (*FillWeatherForecastRequest) GetCityName ¶
func (x *FillWeatherForecastRequest) GetCityName() string
func (*FillWeatherForecastRequest) ProtoMessage ¶
func (*FillWeatherForecastRequest) ProtoMessage()
func (*FillWeatherForecastRequest) ProtoReflect ¶
func (x *FillWeatherForecastRequest) ProtoReflect() protoreflect.Message
func (*FillWeatherForecastRequest) Reset ¶
func (x *FillWeatherForecastRequest) Reset()
func (*FillWeatherForecastRequest) String ¶
func (x *FillWeatherForecastRequest) String() string
type GetWeatherForecastByCityNameRequest ¶
type GetWeatherForecastByCityNameRequest struct { CityName string `protobuf:"bytes,1,opt,name=cityName,proto3" json:"cityName,omitempty"` // contains filtered or unexported fields }
func (*GetWeatherForecastByCityNameRequest) Descriptor
deprecated
func (*GetWeatherForecastByCityNameRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetWeatherForecastByCityNameRequest.ProtoReflect.Descriptor instead.
func (*GetWeatherForecastByCityNameRequest) GetCityName ¶
func (x *GetWeatherForecastByCityNameRequest) GetCityName() string
func (*GetWeatherForecastByCityNameRequest) ProtoMessage ¶
func (*GetWeatherForecastByCityNameRequest) ProtoMessage()
func (*GetWeatherForecastByCityNameRequest) ProtoReflect ¶
func (x *GetWeatherForecastByCityNameRequest) ProtoReflect() protoreflect.Message
func (*GetWeatherForecastByCityNameRequest) Reset ¶
func (x *GetWeatherForecastByCityNameRequest) Reset()
func (*GetWeatherForecastByCityNameRequest) String ¶
func (x *GetWeatherForecastByCityNameRequest) String() string
type GetWeatherForecastByCityNameResponse ¶
type GetWeatherForecastByCityNameResponse struct { Data *WeatherForecastResult `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetWeatherForecastByCityNameResponse) Descriptor
deprecated
func (*GetWeatherForecastByCityNameResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetWeatherForecastByCityNameResponse.ProtoReflect.Descriptor instead.
func (*GetWeatherForecastByCityNameResponse) GetData ¶
func (x *GetWeatherForecastByCityNameResponse) GetData() *WeatherForecastResult
func (*GetWeatherForecastByCityNameResponse) ProtoMessage ¶
func (*GetWeatherForecastByCityNameResponse) ProtoMessage()
func (*GetWeatherForecastByCityNameResponse) ProtoReflect ¶
func (x *GetWeatherForecastByCityNameResponse) ProtoReflect() protoreflect.Message
func (*GetWeatherForecastByCityNameResponse) Reset ¶
func (x *GetWeatherForecastByCityNameResponse) Reset()
func (*GetWeatherForecastByCityNameResponse) String ¶
func (x *GetWeatherForecastByCityNameResponse) String() string
type UnimplementedWeatherForecastServer ¶
type UnimplementedWeatherForecastServer struct { }
UnimplementedWeatherForecastServer must be embedded to have forward compatible implementations.
func (UnimplementedWeatherForecastServer) FillWeatherForecast ¶
func (UnimplementedWeatherForecastServer) FillWeatherForecast(context.Context, *FillWeatherForecastRequest) (*empty.Empty, error)
func (UnimplementedWeatherForecastServer) GetWeatherForecastByCityName ¶
func (UnimplementedWeatherForecastServer) GetWeatherForecastByCityName(context.Context, *GetWeatherForecastByCityNameRequest) (*GetWeatherForecastByCityNameResponse, error)
type UnsafeWeatherForecastServer ¶
type UnsafeWeatherForecastServer interface {
// contains filtered or unexported methods
}
UnsafeWeatherForecastServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WeatherForecastServer will result in compilation errors.
type WeatherForecastClient ¶
type WeatherForecastClient interface { GetWeatherForecastByCityName(ctx context.Context, in *GetWeatherForecastByCityNameRequest, opts ...grpc.CallOption) (*GetWeatherForecastByCityNameResponse, error) FillWeatherForecast(ctx context.Context, in *FillWeatherForecastRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
WeatherForecastClient is the client API for WeatherForecast 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 NewWeatherForecastClient ¶
func NewWeatherForecastClient(cc grpc.ClientConnInterface) WeatherForecastClient
type WeatherForecastResult ¶
type WeatherForecastResult struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*WeatherForecastResult) Descriptor
deprecated
func (*WeatherForecastResult) Descriptor() ([]byte, []int)
Deprecated: Use WeatherForecastResult.ProtoReflect.Descriptor instead.
func (*WeatherForecastResult) GetResult ¶
func (x *WeatherForecastResult) GetResult() string
func (*WeatherForecastResult) ProtoMessage ¶
func (*WeatherForecastResult) ProtoMessage()
func (*WeatherForecastResult) ProtoReflect ¶
func (x *WeatherForecastResult) ProtoReflect() protoreflect.Message
func (*WeatherForecastResult) Reset ¶
func (x *WeatherForecastResult) Reset()
func (*WeatherForecastResult) String ¶
func (x *WeatherForecastResult) String() string
type WeatherForecastServer ¶
type WeatherForecastServer interface { GetWeatherForecastByCityName(context.Context, *GetWeatherForecastByCityNameRequest) (*GetWeatherForecastByCityNameResponse, error) FillWeatherForecast(context.Context, *FillWeatherForecastRequest) (*empty.Empty, error) // contains filtered or unexported methods }
WeatherForecastServer is the server API for WeatherForecast service. All implementations must embed UnimplementedWeatherForecastServer for forward compatibility