addendpoint

package
v0.0.0-...-d41a30c Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeConcatEndpoint

func MakeConcatEndpoint(s addservice.Service) endpoint.Endpoint

func MakeSumEndpoint

func MakeSumEndpoint(s addservice.Service) endpoint.Endpoint

Types

type ConcatRequest

type ConcatRequest struct {
	A, B string
}

type ConcatResponse

type ConcatResponse struct {
	V   string `json:"v"`
	Err error  `json:"err"`
}

func (ConcatResponse) Failed

func (r ConcatResponse) Failed() error

type Set

type Set struct {
	SumEndpoint    endpoint.Endpoint
	ConcatEndpoint endpoint.Endpoint
}

func New

func New(svc addservice.Service) Set

type SumRequest

type SumRequest struct {
	A, B int
}

type SumResponse

type SumResponse struct {
	V   int   `json:"v"`
	Err error `json:"err"`
}

func (SumResponse) Failed

func (r SumResponse) Failed() error

Jump to

Keyboard shortcuts

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