server

package
v0.0.0-...-e75809f Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: GPL-3.0 Imports: 27 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	DB *gorm.DB
}

Admin ...

func (*Admin) Router

func (a *Admin) Router() *http.ServeMux

Router ...

type App

type App struct {
	DB     *gorm.DB
	Router *gin.Engine
}

App ...

func (*App) Initialize

func (a *App) Initialize(config *config.Config)

Initialize initializes the app with predefined configuration

func (*App) Server

func (a *App) Server(host string) *http.Server

Server Run the app on it's router

func (*App) SetAdminRoutes

func (a *App) SetAdminRoutes()

SetAdminRoutes ...

func (*App) SetRoutes

func (a *App) SetRoutes()

SetRoutes ...

Jump to

Keyboard shortcuts

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