server

package
v0.0.0-...-fc68300 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CobraRunner

type CobraRunner func(cmd *cobra.Command, args []string)

func HttpServerRunner

func HttpServerRunner(appName string, version string, builder EndpointsBuilder, port int) CobraRunner

type EndpointsBuilder

type EndpointsBuilder func() (endpoints []HttpEndpoint)

type HttpEndpoint

type HttpEndpoint struct {
	Path       string
	Method     HttpMethod
	EngineDefn *dsl.EngineDefn
}

type HttpMethod

type HttpMethod string
const (
	GetMethod  HttpMethod = "GET"
	PostMethod HttpMethod = "POST"
)

Jump to

Keyboard shortcuts

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