frame

package
v0.0.0-...-2963207 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSwagger

func RegisterSwagger(addr string, engine *gin.Engine)

RegisterSwagger register swagger service

Types

type DefaultWeb

type DefaultWeb struct {
	// contains filtered or unexported fields
}

DefaultWeb doc @Struct DefaultWeb @Summary Default web framework

func (*DefaultWeb) Engine

func (slf *DefaultWeb) Engine() *gin.Engine

Engine doc @Summary Returns gin engine

func (*DefaultWeb) Shutdown

func (slf *DefaultWeb) Shutdown()

Shutdown doc @Summary shutdown system

func (*DefaultWeb) Start

func (slf *DefaultWeb) Start() error

Start doc @Summary start system @Return (error) start fail returns error

func (*DefaultWeb) WithStart

func (slf *DefaultWeb) WithStart(f func(IMagicWeb) error)

WithStart doc @Summary job start function to frame @Param (func()error)

type IMagicWeb

type IMagicWeb interface {
	Start() error
	Shutdown()
	Engine() *gin.Engine
}

IMagicWeb doc @Method IMagicWeb @Summary eb system main frame

type Spawn

type Spawn func() IMagicWeb

Spawn doc @type Spawn @Summary Create agic web framework function

Jump to

Keyboard shortcuts

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