http

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB       *gorm.DB
	JobQueue chan Job
)

Functions

func RouteDispatcher

func RouteDispatcher(mid *gin.RouterGroup)

Types

type Job

type Job struct {
	State  string
	Action func([]string) error
	UID    string
	Parm   []string

	Success chan string
	Fail    chan error
	Finish  chan bool
}

type Server

type Server struct {
	Listen       string
	MaxWorkerNum int
}

func NewServer

func NewServer(path string) *Server

func (*Server) RunServer

func (s *Server) RunServer() error

Directories

Path Synopsis
controller
vms

Jump to

Keyboard shortcuts

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