cors

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

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

Go to latest
Published: Mar 27, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default(conf ...interface{}) *goroom.Engin

Types

type Cache

type Cache struct {
	redis.Conn
}

func DefaultCache

func DefaultCache(gr *goroom.Engin) *Cache

func GetCacheInstance

func GetCacheInstance() *Cache

func (*Cache) Boot

func (c *Cache) Boot(args ...interface{}) func(*goroom.Engin)

type Logger

type Logger struct {
	*logrus.Logger
}

func DefaultLogger

func DefaultLogger(gr *goroom.Engin) *Logger

func GetLoggerInstance

func GetLoggerInstance() *Logger

func (*Logger) Boot

func (l *Logger) Boot(args ...interface{}) func(*goroom.Engin)

type Orm

type Orm struct {
	*gorose.Connection
}

func DefaultOrm

func DefaultOrm(gr *goroom.Engin) *Orm

func GetOrmInstance

func GetOrmInstance() *Orm

func (*Orm) Boot

func (o *Orm) Boot(args ...interface{}) func(*goroom.Engin)

type Routing

type Routing struct {
	*gin.Engine
}

func DefaultRouting

func DefaultRouting(gr *goroom.Engin) *Routing

func GetRoutingInstance

func GetRoutingInstance() *Routing

func (*Routing) Boot

func (r *Routing) Boot(args ...interface{}) func(*goroom.Engin)

type View

type View struct {
	*template.Template
}

func DefaultView

func DefaultView(gr *goroom.Engin) *View

func GetViewInstance

func GetViewInstance() *View

func (*View) Boot

func (v *View) Boot(args ...interface{}) func(*goroom.Engin)

func (*View) New

func (v *View) New(arg string) *View

Jump to

Keyboard shortcuts

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