config

package
v0.0.0-...-65df244 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MotionController

type MotionController struct {
	Path     string
	Handlers []MotionRouter
}

func NewMotionController

func NewMotionController(path string, controllers ...MotionRouter) MotionController

type MotionGo

type MotionGo struct {
	MotionEngine   *gin.Engine
	PropertiesFile *properties.Properties
	Routers        []RoutersVersion
}

func NewMotionGo

func NewMotionGo(propertiesFile string) *MotionGo

func (*MotionGo) AddRouter

func (m *MotionGo) AddRouter(version ...RoutersVersion)

func (*MotionGo) CreateRouters

func (m *MotionGo) CreateRouters()

func (*MotionGo) RunEngine

func (m *MotionGo) RunEngine(serverPort int)

type MotionRouter

type MotionRouter struct {
	Path       string
	Method     string
	Service    func(*gin.Context)
	Middleware []gin.HandlerFunc
}

func NewMotionRouter

func NewMotionRouter(method, path string,
	service gin.HandlerFunc,
	middleware ...gin.HandlerFunc) MotionRouter

type RoutersVersion

type RoutersVersion struct {
	Version  string
	Handlers []func() MotionController
}

Jump to

Keyboard shortcuts

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