endpoints

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeFooEndpoint

func MakeFooEndpoint(svc service.TestHttpService) (ep endpoint.Endpoint)

MakeFooEndpoint returns an endpoint that invokes Sum on the service. Primarily useful in a server.

Types

type Endpoints

type Endpoints struct {
	FooEndpoint endpoint.Endpoint
}

func New

func New(svc service.TestHttpService) (ep Endpoints)

type FooRequest

type FooRequest struct {
	S string
}

type FooResponse

type FooResponse struct {
	Rs  string
	Err error
}

Jump to

Keyboard shortcuts

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