router

package
v0.0.0-...-7139e1e Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Overview

Package router : authorize and authenticate HTTP Request using HTTP Header.

license: Apache license 2.0
copyright: Nobuyuki Matsui <nobuyuki.matsui@gmail.com>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Engine *gin.Engine
	// contains filtered or unexported fields
}

Handler : a struct to handle HTTP Request and check its Header.

Handler encloses github.com/gin-gonic/gin.Engine.
Handler authorizes and authenticates all HTTP Requests using its HTTP Header.

func NewHandler

func NewHandler() *Handler

NewHandler : a factory method to create Handler.

func (*Handler) Run

func (router *Handler) Run(port string)

Run : start listening HTTP Request using enclosed gin.Engine.

Jump to

Keyboard shortcuts

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