server

package
v0.0.0-...-9a0b9f1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDatabaseConnection

func InitDatabaseConnection()

InitDatabaseConnection : init the database connection

Types

type ApplicationServer

type ApplicationServer struct {
	Server *fiber.App
	Name   string
	Port   int
}

ApplicationServer : Application server will hold the service object for the application

func CreateAppServer

func CreateAppServer(Name string, Port int) *ApplicationServer

CreateAppServer : func to create Application server object to Manage the application server

func (*ApplicationServer) LoadDefaultMiddleware

func (app *ApplicationServer) LoadDefaultMiddleware()

LoadDefaultMiddleware : this function will load all the middleware that are need for application

func (*ApplicationServer) Start

func (app *ApplicationServer) Start()

Start : Will Start the Application service for the Thermite

func (*ApplicationServer) Use

func (app *ApplicationServer) Use(args ...interface{})

Use : This function will allow us to add the middleware into the web application

Jump to

Keyboard shortcuts

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