text

package
v0.0.0-...-dfdfd72 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName = "text"

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 = [4]string{"concatstrings", "concatbytes", "concatstringfield", "concatbytesfield"}

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 NewConcatbytesEndpoint

func NewConcatbytesEndpoint(s Service) goa.Endpoint

NewConcatbytesEndpoint returns an endpoint function that calls the method "concatbytes" of service "text".

func NewConcatbytesfieldEndpoint

func NewConcatbytesfieldEndpoint(s Service) goa.Endpoint

NewConcatbytesfieldEndpoint returns an endpoint function that calls the method "concatbytesfield" of service "text".

func NewConcatstringfieldEndpoint

func NewConcatstringfieldEndpoint(s Service) goa.Endpoint

NewConcatstringfieldEndpoint returns an endpoint function that calls the method "concatstringfield" of service "text".

func NewConcatstringsEndpoint

func NewConcatstringsEndpoint(s Service) goa.Endpoint

NewConcatstringsEndpoint returns an endpoint function that calls the method "concatstrings" of service "text".

Types

type Client

type Client struct {
	ConcatstringsEndpoint     goa.Endpoint
	ConcatbytesEndpoint       goa.Endpoint
	ConcatstringfieldEndpoint goa.Endpoint
	ConcatbytesfieldEndpoint  goa.Endpoint
}

Client is the "text" service client.

func NewClient

func NewClient(concatstrings, concatbytes, concatstringfield, concatbytesfield goa.Endpoint) *Client

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

func (*Client) Concatbytes

func (c *Client) Concatbytes(ctx context.Context, p *ConcatbytesPayload) (res []byte, err error)

Concatbytes calls the "concatbytes" endpoint of the "text" service.

func (*Client) Concatbytesfield

func (c *Client) Concatbytesfield(ctx context.Context, p *ConcatbytesfieldPayload) (res *MyConcatenation, err error)

Concatbytesfield calls the "concatbytesfield" endpoint of the "text" service.

func (*Client) Concatstringfield

func (c *Client) Concatstringfield(ctx context.Context, p *ConcatstringfieldPayload) (res *MyConcatenation, err error)

Concatstringfield calls the "concatstringfield" endpoint of the "text" service.

func (*Client) Concatstrings

func (c *Client) Concatstrings(ctx context.Context, p *ConcatstringsPayload) (res string, err error)

Concatstrings calls the "concatstrings" endpoint of the "text" service.

type ConcatbytesPayload

type ConcatbytesPayload struct {
	// Left operand
	A string
	// Right operand
	B string
}

ConcatbytesPayload is the payload type of the text service concatbytes method.

type ConcatbytesfieldPayload

type ConcatbytesfieldPayload struct {
	// Left operand
	A string
	// Right operand
	B string
}

ConcatbytesfieldPayload is the payload type of the text service concatbytesfield method.

type ConcatstringfieldPayload

type ConcatstringfieldPayload struct {
	// Left operand
	A string
	// Right operand
	B string
}

ConcatstringfieldPayload is the payload type of the text service concatstringfield method.

type ConcatstringsPayload

type ConcatstringsPayload struct {
	// Left operand
	A string
	// Right operand
	B string
}

ConcatstringsPayload is the payload type of the text service concatstrings method.

type Endpoints

type Endpoints struct {
	Concatstrings     goa.Endpoint
	Concatbytes       goa.Endpoint
	Concatstringfield goa.Endpoint
	Concatbytesfield  goa.Endpoint
}

Endpoints wraps the "text" service endpoints.

func NewEndpoints

func NewEndpoints(s Service) *Endpoints

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

func (*Endpoints) Use

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

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

type MyConcatenation

type MyConcatenation struct {
	Stringfield *string
	Bytesfield  []byte
}

MyConcatenation is the result type of the text service concatstringfield method.

type Service

type Service interface {
	// Concatstrings implements concatstrings.
	Concatstrings(context.Context, *ConcatstringsPayload) (res string, err error)
	// Concatbytes implements concatbytes.
	Concatbytes(context.Context, *ConcatbytesPayload) (res []byte, err error)
	// Concatstringfield implements concatstringfield.
	Concatstringfield(context.Context, *ConcatstringfieldPayload) (res *MyConcatenation, err error)
	// Concatbytesfield implements concatbytesfield.
	Concatbytesfield(context.Context, *ConcatbytesfieldPayload) (res *MyConcatenation, err error)
}

The text service performs operations on strings

Jump to

Keyboard shortcuts

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