server

package
v0.0.0-...-0231498 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap(life fx.Lifecycle, server *Server)

func Module

func Module() fx.Option

func NewConfig

func NewConfig() *iris.Configuration

NewConfig init config

func NewDB

func NewDB(cfg *iris.Configuration) *gorm.DB

NewDB database

func Run

func Run()

Types

type Server

type Server struct {
	*iris.Application
	*iris.Configuration
	DB *gorm.DB
}

func New

func New(cfg *iris.Configuration, db *gorm.DB, userHandler *handler.UserHandler) *Server

Jump to

Keyboard shortcuts

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