controller

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorCode added in v0.1.2

func ErrorCode(err error) int

ErrorCode TODO

func QueueIDFromQuery

func QueueIDFromQuery(q string) (qid sth.QueueID, err error)

QueueIDFromQuery TODO

Types

type CallByQueueID added in v0.0.8

type CallByQueueID func(sth.QueueID) (sth.Result, error)

CallByQueueID TODO

type Controller added in v0.1.2

type Controller struct {
	*core.Core
}

Controller TODO

func New added in v0.1.2

func New(serv *core.Core) *Controller

New TODO

func (*Controller) AddRequestConfig added in v0.1.14

func (ctrl *Controller) AddRequestConfig(c *gin.Context) (result sth.Result, err error)

AddRequestConfig TODO

func (*Controller) ClearQueue added in v0.1.2

func (ctrl *Controller) ClearQueue(c *gin.Context) (sth.Result, error)

ClearQueue TODO

func (*Controller) DeleteQueue added in v0.1.2

func (ctrl *Controller) DeleteQueue(c *gin.Context) (sth.Result, error)

DeleteQueue TODO

func (*Controller) DeleteRequestConfig added in v0.1.14

func (ctrl *Controller) DeleteRequestConfig(c *gin.Context) (result sth.Result, err error)

DeleteRequestConfig TODO

func (*Controller) GetConfig added in v0.1.14

func (ctrl *Controller) GetConfig(c *gin.Context) (result sth.Result, err error)

GetConfig TODO

func (*Controller) GetRequestConfig added in v0.1.14

func (ctrl *Controller) GetRequestConfig(c *gin.Context) (result sth.Result, err error)

GetRequestConfig TODO

func (*Controller) Info added in v0.1.2

func (ctrl *Controller) Info(c *gin.Context) (sth.Result, error)

Info TODO

func (*Controller) MatchRequestConfig added in v0.1.14

func (ctrl *Controller) MatchRequestConfig(c *gin.Context) (result sth.Result, err error)

MatchRequestConfig TODO

func (*Controller) Pause added in v0.1.2

func (ctrl *Controller) Pause(c *gin.Context) (sth.Result, error)

Pause TODO

func (*Controller) PauseQueue added in v0.1.2

func (ctrl *Controller) PauseQueue(c *gin.Context) (sth.Result, error)

PauseQueue TODO

func (*Controller) PopRequest added in v0.1.2

func (ctrl *Controller) PopRequest(c *gin.Context) (result sth.Result, err error)

PopRequest TODO

func (*Controller) ProcessMemory added in v0.1.2

func (ctrl *Controller) ProcessMemory(c *gin.Context) (sth.Result, error)

ProcessMemory TODO

func (*Controller) PushRequest added in v0.1.2

func (ctrl *Controller) PushRequest(c *gin.Context) (result sth.Result, err error)

PushRequest TODO

func (*Controller) QueueInfo added in v0.1.2

func (ctrl *Controller) QueueInfo(c *gin.Context) (sth.Result, error)

QueueInfo TODO

func (*Controller) Queues added in v0.1.2

func (ctrl *Controller) Queues(c *gin.Context) (result sth.Result, err error)

Queues TODO

func (*Controller) QueuesInfo added in v0.1.12

func (ctrl *Controller) QueuesInfo(c *gin.Context) (sth.Result, error)

QueuesInfo TODO

func (*Controller) RedisInfo added in v0.1.2

func (ctrl *Controller) RedisInfo(c *gin.Context) (sth.Result, error)

RedisInfo TODO

func (*Controller) Resume added in v0.1.2

func (ctrl *Controller) Resume(c *gin.Context) (sth.Result, error)

Resume TODO

func (*Controller) ResumeQueue added in v0.1.2

func (ctrl *Controller) ResumeQueue(c *gin.Context) (sth.Result, error)

ResumeQueue TODO

func (*Controller) SyncQueue added in v0.1.2

func (ctrl *Controller) SyncQueue(c *gin.Context) (sth.Result, error)

SyncQueue TODO

func (*Controller) TryRequestConfig added in v0.1.14

func (ctrl *Controller) TryRequestConfig(c *gin.Context) (result sth.Result, err error)

TryRequestConfig TODO

func (*Controller) ViewQueue added in v0.1.2

func (ctrl *Controller) ViewQueue(c *gin.Context) (result sth.Result, err error)

ViewQueue TODO

func (*Controller) ViewQueues added in v0.1.2

func (ctrl *Controller) ViewQueues(c *gin.Context) (result sth.Result, err error)

ViewQueues TODO

type InvalidBody

type InvalidBody string

InvalidBody TODO

func (InvalidBody) Error

func (e InvalidBody) Error() string

type InvalidQuery

type InvalidQuery string

InvalidQuery TODO

func (InvalidQuery) Error

func (e InvalidQuery) Error() string

Jump to

Keyboard shortcuts

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