transport

package module
v2.0.0-...-e9a187d Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const IsVersion2 = "v2"

IsVersion2 is a static check for lib<->generator version mismatch.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompoundServiceDesc

type CompoundServiceDesc struct {
	// contains filtered or unexported fields
}

func NewCompoundServiceDesc

func NewCompoundServiceDesc(desc ...ServiceDesc) *CompoundServiceDesc

func (*CompoundServiceDesc) RegisterGRPC

func (d *CompoundServiceDesc) RegisterGRPC(g *grpc.Server)

func (*CompoundServiceDesc) RegisterHTTP

func (d *CompoundServiceDesc) RegisterHTTP(r Router)

func (*CompoundServiceDesc) SwaggerDef

func (d *CompoundServiceDesc) SwaggerDef(options ...swagger.Option) []byte

type Router

type Router interface {
	http.Handler
	Handle(pattern string, h http.Handler)
}

Router routes HTTP requests around.

type Service

type Service interface {
	GetDescription() ServiceDesc
}

Service is a registerable collection of endpoints. These functions should be autogenerated by protoc-gen-goclay.

type ServiceDesc

type ServiceDesc interface {
	RegisterGRPC(*grpc.Server)
	RegisterHTTP(Router)
	SwaggerDef(options ...swagger.Option) []byte
}

ServiceDesc is a description of an endpoints' collection. These functions should be autogenerated by protoc-gen-goclay.

Directories

Path Synopsis
httpmw
Package httpmw provides middlewares that are automatically used by the generated code.
Package httpmw provides middlewares that are automatically used by the generated code.

Jump to

Keyboard shortcuts

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