server

package
v0.0.0-...-ccd5aba Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDB

func NewDB(name string, dialect string, host string, port string, user string, password string, dbName string) *gorm.DB

Create New Database connection for the Airstrike Application to Connect Store and Process the data

Types

type DB

type DB struct {
	Name string

	Connection *gorm.DB
	// contains filtered or unexported fields
}

func (*DB) Postgres

func (database *DB) Postgres()

type Engine

type Engine struct {
	Name   string
	Port   int
	Server *gin.Engine
}

Engine is server interface for Web server will hold all muxer , middlware and configuration

func ApplicationServer

func ApplicationServer(name string, port int) *Engine

func (Engine) RegisterRouter

func (engine Engine) RegisterRouter(method string, path string, handlers gin.HandlerFunc)

func (Engine) Run

func (engine Engine) Run()

type Route

type Route struct {
	Name   string
	Url    string
	Method string
}

type RouteGroup

type RouteGroup struct {
	Name string
}

Jump to

Keyboard shortcuts

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