package
2.2.4+incompatible
Repository: https://github.com/goadesign/examples.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewAddEndpoint returns an endpoint function that calls the method "add" of service "storage".
NewClient initializes a "storage" service client given the endpoints.
NewEndpoints wraps the methods of the "storage" service with endpoints.
NewListEndpoint returns an endpoint function that calls the method "list" of service "storage".
NewMultiAddEndpoint returns an endpoint function that calls the method "multi_add" of service "storage".
NewMultiUpdateEndpoint returns an endpoint function that calls the method "multi_update" of service "storage".
NewRateEndpoint returns an endpoint function that calls the method "rate" of service "storage".
NewRemoveEndpoint returns an endpoint function that calls the method "remove" of service "storage".
NewShowEndpoint returns an endpoint function that calls the method "show" of service "storage".
NewStoredBottle initializes result type StoredBottle from viewed result type StoredBottle.
NewStoredBottleCollection initializes result type StoredBottleCollection from viewed result type StoredBottleCollection.
NewViewedStoredBottle initializes viewed result type StoredBottle from result type StoredBottle using the given view.
NewViewedStoredBottleCollection initializes viewed result type StoredBottleCollection from result type StoredBottleCollection using the given view.

# Constants

ServiceName is the name of the service as defined in the design.

# Variables

MethodNames lists the service method names as defined in the design.

# Structs

Bottle is the payload type of the storage service add method.
Client is the "storage" service client.
No description provided by the author
Endpoints wraps the "storage" service endpoints.
MultiUpdatePayload is the payload type of the storage service multi_update method.
NotFound is the type returned when attempting to show or delete a bottle that does not exist.
RemovePayload is the payload type of the storage service remove method.
ShowPayload is the payload type of the storage service show method.
StoredBottle is the result type of the storage service show method.
No description provided by the author

# Interfaces

The storage service makes it possible to view, add or remove wine bottles.

# Type aliases

StoredBottleCollection is the result type of the storage service list method.