httphandler

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2018 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const AuthContext = "auth"

AuthContext context key for access auth object

Variables

This section is empty.

Functions

func SetUpHTTPHandlers

func SetUpHTTPHandlers(
	config config.AppConfig,
	router *mux.Router,
	db *bolt.DB,
	messenger _messenger.Messenger,
	loggerUtil logger.Logger,
	deployment dep.Deployment)

SetUpHTTPHandlers setUpHTTPHandlers

func Trim

func Trim(s string) string

Trim trim string for spaces

Types

type By

type By func(r1, r2 *types.Resource) bool

By is the type of a "less" function that defines the ordering of its Planet arguments.

func (By) Sort

func (by By) Sort(routes []types.Resource)

Sort is a method on the function type, By, that sorts the argument slice according to the function.

type ConsumerDTO

type ConsumerDTO struct {
	EventID    string
	ConsumerID string
}

ConsumerDTO consumer DTO

type Httphandler

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

Httphandler handlers

func (*Httphandler) ApigatewayDataServe

func (httphandler *Httphandler) ApigatewayDataServe(router *mux.Router)

ApigatewayDataServe handler

func (*Httphandler) AuthHandler

func (httphandler *Httphandler) AuthHandler(router *mux.Router)

AuthHandler handler

func (*Httphandler) EventBoxHandler added in v0.1.2

func (httphandler *Httphandler) EventBoxHandler(router *mux.Router)

EventBoxHandler handler

func (*Httphandler) EventHandler

func (httphandler *Httphandler) EventHandler(router *mux.Router)

EventHandler handler

func (*Httphandler) FunctionHandler

func (httphandler *Httphandler) FunctionHandler(router *mux.Router)

FunctionHandler handler

func (*Httphandler) MessengerHandler

func (httphandler *Httphandler) MessengerHandler(router *mux.Router)

MessengerHandler handler

func (*Httphandler) MgrComponentHandler

func (httphandler *Httphandler) MgrComponentHandler(router *mux.Router)

MgrComponentHandler handler

func (*Httphandler) RequestTrackerHandler

func (httphandler *Httphandler) RequestTrackerHandler(router *mux.Router)

RequestTrackerHandler request-tracker handler

func (*Httphandler) ResourceHandler

func (httphandler *Httphandler) ResourceHandler(router *mux.Router)

ResourceHandler handler

type Log

type Log struct {
	RequestID string `json:"requestID"`
	Type      string `json:"type"`
	Message   string `json:"message"`
	Source    string `json:"source"` //executed by function-container-id or app-id
	Time      string `json:"time"`   //executed time
}

Log log

Jump to

Keyboard shortcuts

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