server

package
v0.0.0-...-2141282 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminHandler

func AdminHandler(w http.ResponseWriter, r *http.Request)

func CORS

func CORS(next http.Handler) http.Handler

func MessageHandler

func MessageHandler(w http.ResponseWriter, r *http.Request)

func RequestIdInterceptor

func RequestIdInterceptor(next http.Handler) http.Handler

func Routes

func Routes() http.Handler

Routes creates the app router

func Start

func Start(appPort int)

Types

type ContextKey

type ContextKey string

ContextKey is used for context.Context value. The value requires a key that is not primitive type.

const ContextKeyRequestID ContextKey = "requestID"

ContextKeyRequestID is the ContextKey for RequestID

Jump to

Keyboard shortcuts

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