server

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeForecastRequest

func DecodeForecastRequest(ctx context.Context, v interface{}, md metadata.MD) (interface{}, error)

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

Server implements the forecasterpb.ForecasterServer interface.

func New

New instantiates the server struct with the Forecaster service endpoints.

func (*Server) Forecast

Forecast implements the "Forecast" method in forecasterpb.ForecasterServer interface.

Jump to

Keyboard shortcuts

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