Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Start ¶
func Start(serviceName string, init RouterInitializer) error
Types ¶
type PathRouter ¶
type PathRouter interface { Path(path string, init func(router PathRouter)) Get(handler RequestHandler) Post(handler RequestHandler) Delete(handler RequestHandler) Put(handler RequestHandler) Patch(handler RequestHandler) Head(handler RequestHandler) }
type RequestContext ¶
type RequestContext = iris.Context
type RequestHandler ¶
type RequestHandler = func(ctx RequestContext)
type RouterInitializer ¶
type RouterInitializer = func(router PathRouter, pool database.Pool, sensor *instana.Sensor)
Click to show internal directories.
Click to hide internal directories.