Documentation
¶
Index ¶
- func DecodeForecastRequest(ctx context.Context, v interface{}, md metadata.MD) (interface{}, error)
- func EncodeForecastResponse(ctx context.Context, v interface{}, hdr, trlr *metadata.MD) (interface{}, error)
- func NewForecastHandler(endpoint goa.Endpoint, h goagrpc.UnaryHandler) goagrpc.UnaryHandler
- func NewForecastPayload(message *forecasterpb.ForecastRequest) *forecaster.ForecastPayload
- func NewProtoForecastResponse(result *forecaster.Forecast2) *forecasterpb.ForecastResponse
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeForecastRequest ¶
DecodeForecastRequest decodes requests sent to "Forecaster" service "forecast" endpoint.
func EncodeForecastResponse ¶
func EncodeForecastResponse(ctx context.Context, v interface{}, hdr, trlr *metadata.MD) (interface{}, error)
EncodeForecastResponse encodes responses from the "Forecaster" service "forecast" endpoint.
func NewForecastHandler ¶
func NewForecastHandler(endpoint goa.Endpoint, h goagrpc.UnaryHandler) goagrpc.UnaryHandler
NewForecastHandler creates a gRPC handler which serves the "Forecaster" service "forecast" endpoint.
func NewForecastPayload ¶
func NewForecastPayload(message *forecasterpb.ForecastRequest) *forecaster.ForecastPayload
NewForecastPayload builds the payload of the "forecast" endpoint of the "Forecaster" service from the gRPC request type.
func NewProtoForecastResponse ¶ added in v0.10.0
func NewProtoForecastResponse(result *forecaster.Forecast2) *forecasterpb.ForecastResponse
NewProtoForecastResponse builds the gRPC response type from the result of the "forecast" endpoint of the "Forecaster" service.
Types ¶
type Server ¶
type Server struct { ForecastH goagrpc.UnaryHandler forecasterpb.UnimplementedForecasterServer }
Server implements the forecasterpb.ForecasterServer interface.
func New ¶
func New(e *forecaster.Endpoints, uh goagrpc.UnaryHandler) *Server
New instantiates the server struct with the Forecaster service endpoints.
func (*Server) Forecast ¶
func (s *Server) Forecast(ctx context.Context, message *forecasterpb.ForecastRequest) (*forecasterpb.ForecastResponse, error)
Forecast implements the "Forecast" method in forecasterpb.ForecasterServer interface.