router

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatorHttp

func CreatorHttp(cfg interface{}) (interface{}, error)

func CreatorRpc

func CreatorRpc(cfg interface{}) (interface{}, error)

func InitHttp

func InitHttp(controller interface{})

func InitRpc

func InitRpc(controllers interface{})

func NewHttpRouter

func NewHttpRouter(cfg *RouterHttpCfg)

func NewRpcRouter

func NewRpcRouter(cfg *RouterRpcCfg)

Types

type ControllerMapsType

type ControllerMapsType map[string]reflect.Value

type RouterHttpCfg

type RouterHttpCfg struct {
	Path    string
	Handler string
}

type RouterRpcCfg

type RouterRpcCfg struct {
	Path string
}

Jump to

Keyboard shortcuts

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