Documentation
¶
Index ¶
- Constants
- Variables
- func NewConcatbytesEndpoint(s Service) goa.Endpoint
- func NewConcatbytesfieldEndpoint(s Service) goa.Endpoint
- func NewConcatstringfieldEndpoint(s Service) goa.Endpoint
- func NewConcatstringsEndpoint(s Service) goa.Endpoint
- type Client
- func (c *Client) Concatbytes(ctx context.Context, p *ConcatbytesPayload) (res []byte, err error)
- func (c *Client) Concatbytesfield(ctx context.Context, p *ConcatbytesfieldPayload) (res *MyConcatenation, err error)
- func (c *Client) Concatstringfield(ctx context.Context, p *ConcatstringfieldPayload) (res *MyConcatenation, err error)
- func (c *Client) Concatstrings(ctx context.Context, p *ConcatstringsPayload) (res string, err error)
- type ConcatbytesPayload
- type ConcatbytesfieldPayload
- type ConcatstringfieldPayload
- type ConcatstringsPayload
- type Endpoints
- type MyConcatenation
- type Service
Constants ¶
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 ¶
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 ¶
NewConcatbytesEndpoint returns an endpoint function that calls the method "concatbytes" of service "text".
func NewConcatbytesfieldEndpoint ¶
NewConcatbytesfieldEndpoint returns an endpoint function that calls the method "concatbytesfield" of service "text".
func NewConcatstringfieldEndpoint ¶
NewConcatstringfieldEndpoint returns an endpoint function that calls the method "concatstringfield" of service "text".
func NewConcatstringsEndpoint ¶
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 ¶
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 ¶
ConcatbytesPayload is the payload type of the text service concatbytes method.
type ConcatbytesfieldPayload ¶
ConcatbytesfieldPayload is the payload type of the text service concatbytesfield method.
type ConcatstringfieldPayload ¶
ConcatstringfieldPayload is the payload type of the text service concatstringfield method.
type ConcatstringsPayload ¶
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 ¶
NewEndpoints wraps the methods of the "text" service with endpoints.
type MyConcatenation ¶
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