client

package
v2.2.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPickFunc

func BuildPickFunc(grpccli sommelierpb.SommelierClient, cliopts ...grpc.CallOption) goagrpc.RemoteFunc

BuildPickFunc builds the remote method to invoke for "sommelier" service "pick" endpoint.

func BuildPickPayload

func BuildPickPayload(sommelierPickMessage string) (*sommelier.Criteria, error)

BuildPickPayload builds the payload for the sommelier pick endpoint from CLI flags.

func DecodePickResponse

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

DecodePickResponse decodes responses from the sommelier pick endpoint.

func EncodePickRequest

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

EncodePickRequest encodes requests sent to sommelier pick endpoint.

func NewPickRequest

func NewPickRequest(payload *sommelier.Criteria) *sommelierpb.PickRequest

NewPickRequest builds the gRPC request type from the payload of the "pick" endpoint of the "sommelier" service.

func NewPickResult

NewPickResult builds the result type of the "pick" endpoint of the "sommelier" service from the gRPC response type.

func ValidateComponent

func ValidateComponent(message *sommelierpb.Component) (err error)

ValidateComponent runs the validations defined on Component.

func ValidateStoredBottle

func ValidateStoredBottle(message *sommelierpb.StoredBottle) (err error)

ValidateStoredBottle runs the validations defined on StoredBottle.

func ValidateStoredBottleCollection

func ValidateStoredBottleCollection(message *sommelierpb.StoredBottleCollection) (err error)

ValidateStoredBottleCollection runs the validations defined on StoredBottleCollection.

func ValidateWinery

func ValidateWinery(message *sommelierpb.Winery) (err error)

ValidateWinery runs the validations defined on Winery.

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 sommelier service servers.

func (*Client) Pick

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

Pick calls the "Pick" function in sommelierpb.SommelierClient interface.

Jump to

Keyboard shortcuts

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