mvc

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MulanPSL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = struct {
	Mvc struct {
		Enabled bool
		Port    string
		Cors    struct {
			Enabled bool
		}
		Swagger struct {
			Enabled bool
			Https   bool
			BaseUrl string
		}
	}
	SimpleMgmt struct {
		Enabled    bool     `default:"false"`
		ManagerIds []string `default:"[]"`
	}
}{}

Functions

func RegGet added in v0.5.4

func RegGet(uri string, handlers ...gin.HandlerFunc)

func RegPost added in v0.5.4

func RegPost(uri string, handlers ...gin.HandlerFunc)

Types

type Controller

type Controller interface {
	Handler(c *gin.Context)
	HttpMethod() string
}

type MvcService

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

func (*MvcService) Start

func (svc *MvcService) Start(wg *sync.WaitGroup)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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