server

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

New instantiates the server struct with the health service endpoints.

func (*Server) GetStatus

GetStatus implements the "GetStatus" method in healthpb.HealthServer interface.

Jump to

Keyboard shortcuts

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