server

package
v0.0.0-...-b00f800 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Response

func Response(ctx iris.Context, code int, response interface{})

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)

Jump to

Keyboard shortcuts

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