contract

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RandomStringsRouteContract = lotus.RouteContract{
		Label:       "RandomStrings",
		Description: "A route that generate random strings",
		Method:      fasthttp.MethodPost,
		Path:        "/random",
	}
	RandomStringsServiceContract = lotus.ServiceContract{
		Label:       "RandomStringsService",
		Description: "Service that generates random strings",
		Host:        "localhost",
		Namespace:   "random_strings",
		Port:        8081,
		RoutesContracts: []lotus.RouteContract{
			RandomStringsRouteContract,
		},
	}
)
View Source
var EchoServiceContract = lotus.ServiceContract{
	Label:     "EchoService",
	Host:      "localhost",
	Port:      8080,
	Namespace: "echo_service",
	RoutesContracts: []lotus.RouteContract{
		SimpleEchoRouteContract,
		PostEchoRouteContract,
	},
}
View Source
var PostEchoRouteContract = lotus.RouteContract{
	Label:       "PostEcho",
	Description: "A route that outputs the contents of it's body",
	Path:        "/echo",
	Method:      fasthttp.MethodPost,
}
View Source
var SimpleEchoRouteContract = lotus.RouteContract{
	Label:       "SimpleEcho",
	Description: "A Simple route that outputs the RequestHandler URI",
	Path:        "/echo",
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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