controllers

package
v0.0.0-...-f1e4607 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	controller.BaseControl
}

Controller is the base controller for API

func (*Controller) GetQueryID

func (ctrl *Controller) GetQueryID(ctx *gin.Context) string

GetQueryID gets id from Request

func (*Controller) IDToUUID

func (ctrl *Controller) IDToUUID(idStr string) (uuid.UUID, error)

IDToUUID converts string type to uuid

func (Controller) ParseQuery

func (ctrl Controller) ParseQuery(ctx *gin.Context, statusMap interface{}) (search.ElasticSearchEngine, error)

ParseQuery parses query string other similar methods will be deprecated gradually

type OnlineController

type OnlineController struct {
	Controller
}

func (*OnlineController) Patch

func (ctrl *OnlineController) Patch(ctx *gin.Context)

type TestAPIControl

type TestAPIControl struct {
	libController.BaseControl
}

TestAPIControl tests the framework

func (*TestAPIControl) GetAll

func (ctrl *TestAPIControl) GetAll(ctx *gin.Context)

Jump to

Keyboard shortcuts

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