api

package
v0.0.0-...-b7dcdf6 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "1.0.0"

Version of API

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	*commonApp.App
	Server *http.Server
}

App is the application for API

func New

func New(commonApp *commonApp.App, cfg config.Configuration) *App

New func is a constructor for the ApiApp

func (*App) RegisterHandlers

func (app *App) RegisterHandlers(rg *routing.RouteGroup, authHandler routing.Handler)

RegisterHandlers sets up the routing of the HTTP handlers.

func (*App) Run

func (app *App) Run() error

Run is func to run the ApiApp

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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