controller

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Ctrl = &BaseController{}

BaseController the controller with some useful and common function

Functions

This section is empty.

Types

type BaseController

type BaseController struct {
	utils.Resp
}

func (*BaseController) GetUUID

func (ctrl *BaseController) GetUUID(c *gin.Context)

uuid

func (*BaseController) HealthCheck

func (ctrl *BaseController) HealthCheck(c *gin.Context)

func (*BaseController) MemoryStatus

func (ctrl *BaseController) MemoryStatus(c *gin.Context)

memory status

func (*BaseController) ReadyCheck

func (ctrl *BaseController) ReadyCheck(c *gin.Context)

func (*BaseController) Test

func (ctrl *BaseController) Test(c *gin.Context)

test

func (*BaseController) Version

func (ctrl *BaseController) Version(c *gin.Context)

version

type Condition

type Condition struct {
	Count int                      `json:"count"`
	Item  []map[string]interface{} `json:"item"`
}

type Memories

type Memories struct {
	M Condition `json:"channel"`
}

Jump to

Keyboard shortcuts

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