server

package
v0.0.0-...-5b49f20 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigMiddleware

func ConfigMiddleware(viper *viper.Viper) gin.HandlerFunc

func Index

func Index(c *gin.Context)

Types

type API

type API struct {
	Router *gin.Engine
	Config *viper.Viper
}

func (*API) SetupRouter

func (a *API) SetupRouter()

func (*API) SetupViper

func (a *API) SetupViper() error

func (*API) SetupViperDefaults

func (a *API) SetupViperDefaults()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳