tasks

package
v0.0.0-...-b9360c4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName = "tasks"

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

View Source
var MethodNames = [1]string{"five"}

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 MakeBadRequest

func MakeBadRequest(err error) *goa.ServiceError

MakeBadRequest builds a goa.ServiceError from an error.

func MakeForbidden

func MakeForbidden(err error) *goa.ServiceError

MakeForbidden builds a goa.ServiceError from an error.

func MakeNotFound

func MakeNotFound(err error) *goa.ServiceError

MakeNotFound builds a goa.ServiceError from an error.

func MakeUnauthorized

func MakeUnauthorized(err error) *goa.ServiceError

MakeUnauthorized builds a goa.ServiceError from an error.

func NewFiveEndpoint

func NewFiveEndpoint(s Service) goa.Endpoint

NewFiveEndpoint returns an endpoint function that calls the method "five" of service "tasks".

Types

type Client

type Client struct {
	FiveEndpoint goa.Endpoint
}

Client is the "tasks" service client.

func NewClient

func NewClient(five goa.Endpoint) *Client

NewClient initializes a "tasks" service client given the endpoints.

func (*Client) Five

func (c *Client) Five(ctx context.Context) (err error)

Five calls the "five" endpoint of the "tasks" service.

type Endpoints

type Endpoints struct {
	Five goa.Endpoint
}

Endpoints wraps the "tasks" service endpoints.

func NewEndpoints

func NewEndpoints(s Service) *Endpoints

NewEndpoints wraps the methods of the "tasks" service with endpoints.

func (*Endpoints) Use

func (e *Endpoints) Use(m func(goa.Endpoint) goa.Endpoint)

Use applies the given middleware to all the "tasks" service endpoints.

type Service

type Service interface {
	// Five implements five.
	Five(context.Context) (err error)
}

Service is the tasks service interface.

type Unauthorized

type Unauthorized string

credentials are invalid

func (Unauthorized) Error

func (e Unauthorized) Error() string

Error returns an error description.

func (Unauthorized) ErrorName

func (e Unauthorized) ErrorName() string

ErrorName returns "unauthorized".

Jump to

Keyboard shortcuts

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