client

package
v1.2.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildGetStatusFunc

func BuildGetStatusFunc(grpccli healthpb.HealthClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc

BuildGetStatusFunc builds the remote method to invoke for "health" service "GetStatus" endpoint.

func DecodeGetStatusResponse

func DecodeGetStatusResponse(ctx context.Context, v interface{}, hdr, trlr metadata.MD) (interface{}, error)

DecodeGetStatusResponse decodes responses from the health GetStatus endpoint.

func NewGetStatusResult

func NewGetStatusResult(message *healthpb.GetStatusResponse) *health.HealthStatusResponse

NewGetStatusResult builds the result type of the "GetStatus" endpoint of the "health" service from the gRPC response type.

func NewProtoGetStatusRequest

func NewProtoGetStatusRequest() *healthpb.GetStatusRequest

NewProtoGetStatusRequest builds the gRPC request type from the payload of the "GetStatus" endpoint of the "health" service.

func ValidateGetStatusResponse

func ValidateGetStatusResponse(message *healthpb.GetStatusResponse) (err error)

ValidateGetStatusResponse runs the validations defined on GetStatusResponse.

func ValidateHealthStatus

func ValidateHealthStatus(message *healthpb.HealthStatus) (err error)

ValidateHealthStatus runs the validations defined on HealthStatus.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client lists the service endpoint gRPC clients.

func NewClient

func NewClient(cc *grpc.ClientConn, opts ...grpc.CallOption) *Client

NewClient instantiates gRPC client for all the health service servers.

func (*Client) GetStatus

func (c *Client) GetStatus() goa.Endpoint

GetStatus calls the "GetStatus" function in healthpb.HealthClient interface.

Jump to

Keyboard shortcuts

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