Documentation
¶
Index ¶
- func EncodeGetStatusResponse(ctx context.Context, v interface{}, hdr, trlr *metadata.MD) (interface{}, error)
- func NewGetStatusHandler(endpoint goa.Endpoint, h goagrpc.UnaryHandler) goagrpc.UnaryHandler
- func NewProtoGetStatusResponse(result *health.HealthStatusResponse) *healthpb.GetStatusResponse
- type ErrorNamer
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeGetStatusResponse ¶
func EncodeGetStatusResponse(ctx context.Context, v interface{}, hdr, trlr *metadata.MD) (interface{}, error)
EncodeGetStatusResponse encodes responses from the "health" service "GetStatus" endpoint.
func NewGetStatusHandler ¶
func NewGetStatusHandler(endpoint goa.Endpoint, h goagrpc.UnaryHandler) goagrpc.UnaryHandler
NewGetStatusHandler creates a gRPC handler which serves the "health" service "GetStatus" endpoint.
func NewProtoGetStatusResponse ¶
func NewProtoGetStatusResponse(result *health.HealthStatusResponse) *healthpb.GetStatusResponse
NewProtoGetStatusResponse builds the gRPC response type from the result of the "GetStatus" endpoint of the "health" service.
Types ¶
type ErrorNamer ¶
type ErrorNamer interface {
ErrorName() string
}
ErrorNamer is an interface implemented by generated error structs that exposes the name of the error as defined in the expr.
type Server ¶
type Server struct {
GetStatusH goagrpc.UnaryHandler
healthpb.UnimplementedHealthServer
}
Server implements the healthpb.HealthServer interface.
func New ¶
func New(e *health.Endpoints, uh goagrpc.UnaryHandler) *Server
New instantiates the server struct with the health service endpoints.
func (*Server) GetStatus ¶
func (s *Server) GetStatus(ctx context.Context, message *healthpb.GetStatusRequest) (*healthpb.GetStatusResponse, error)
GetStatus implements the "GetStatus" method in healthpb.HealthServer interface.
Click to show internal directories.
Click to hide internal directories.