csv

package
v0.0.0-...-d2cf98a Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName = "csv"

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{"noop"}

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 NewNoopEndpoint

func NewNoopEndpoint(s Service) goa.Endpoint

NewNoopEndpoint returns an endpoint function that calls the method "noop" of service "csv".

Types

type Client

type Client struct {
	NoopEndpoint goa.Endpoint
}

Client is the "csv" service client.

func NewClient

func NewClient(noop goa.Endpoint) *Client

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

func (*Client) Noop

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

Noop calls the "noop" endpoint of the "csv" service.

type Endpoints

type Endpoints struct {
	Noop goa.Endpoint
}

Endpoints wraps the "csv" service endpoints.

func NewEndpoints

func NewEndpoints(s Service) *Endpoints

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

func (*Endpoints) Use

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

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

type Service

type Service interface {
	// Noop implements noop.
	Noop(context.Context) (err error)
}

Service is the csv service interface.

Jump to

Keyboard shortcuts

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