http

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientSet

type ClientSet struct {
	AdditionEndpoint       endpoint.Endpoint
	SubtractionEndpoint    endpoint.Endpoint
	MultiplicationEndpoint endpoint.Endpoint
	DivisionEndpoint       endpoint.Endpoint
}

ClientSet collects all of the endpoints that compose an add service.

func NewClientSet

func NewClientSet(address string) ClientSet

NewClientSet create a new set of HTTP handler that compose a CalculatorService.

type HandlerSet

type HandlerSet struct {
	AdditionHandler       http.Handler
	SubtractionHandler    http.Handler
	MultiplicationHandler http.Handler
	DivisionHandler       http.Handler
	GraphqlHandler        http.Handler
}

HandlerSet collects all of the endpoints that compose an add service.

func NewHandlerSet

func NewHandlerSet(e gptendpoint.Set) HandlerSet

NewHandlerSet create a new set of HTTP handler that compose a CalculatorService.

Jump to

Keyboard shortcuts

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