Documentation
¶
Index ¶
- Constants
- Variables
- func MakeInvalidURL(err error) *goa.ServiceError
- func NewAddEndpoint(s Service) goa.Endpoint
- func NewListEndpoint(s Service) goa.Endpoint
- func NewRemoveEndpoint(s Service) goa.Endpoint
- func NewViewedOperation(res *Operation, view string) *indexesviews.Operation
- type Client
- type Endpoints
- type IndexPayload
- type Operation
- type Service
Constants ¶
const ServiceName = "indexes"
ServiceName is the name of the service as defined in the design. This is the same value that is set in the endpoint request contexts under the ServiceKey key.
Variables ¶
var MethodNames = [3]string{"list", "add", "remove"}
MethodNames lists the service method names as defined in the design. These are the same values that are set in the endpoint request contexts under the MethodKey key.
Functions ¶
func MakeInvalidURL ¶
func MakeInvalidURL(err error) *goa.ServiceError
MakeInvalidURL builds a goa.ServiceError from an error.
func NewAddEndpoint ¶
NewAddEndpoint returns an endpoint function that calls the method "add" of service "indexes".
func NewListEndpoint ¶
NewListEndpoint returns an endpoint function that calls the method "list" of service "indexes".
func NewRemoveEndpoint ¶
NewRemoveEndpoint returns an endpoint function that calls the method "remove" of service "indexes".
func NewViewedOperation ¶
func NewViewedOperation(res *Operation, view string) *indexesviews.Operation
NewViewedOperation initializes viewed result type Operation from result type Operation using the given view.
Types ¶
type Client ¶
type Client struct { ListEndpoint goa.Endpoint AddEndpoint goa.Endpoint RemoveEndpoint goa.Endpoint }
Client is the "indexes" service client.
type Endpoints ¶
Endpoints wraps the "indexes" service endpoints.
func NewEndpoints ¶
NewEndpoints wraps the methods of the "indexes" service with endpoints.
type IndexPayload ¶
type IndexPayload struct { // The url of the index file URL string }
IndexPayload is the payload type of the indexes service add method.
type Operation ¶
type Operation struct { // The status of the operation Status string }
Operation is the result type of the indexes service add method.
func NewOperation ¶
func NewOperation(vres *indexesviews.Operation) *Operation
NewOperation initializes result type Operation from viewed result type Operation.
type Service ¶
type Service interface { // List implements list. List(context.Context) (res []string, err error) // Add implements add. Add(context.Context, *IndexPayload) (res *Operation, err error) // Remove implements remove. Remove(context.Context, *IndexPayload) (res *Operation, err error) }
The indexes service manages the package_index files