controller

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorCode added in v0.1.0

func ErrorCode(err error) int

ErrorCode TODO

Types

type CallByUpstreamID

type CallByUpstreamID func(core.UpstreamID) (sth.Result, error)

CallByUpstreamID TODO

type Controller added in v0.1.0

type Controller struct {
	*core.Core
}

Controller TODO

func New added in v0.1.0

func New(serv *core.Core) *Controller

New TODO

func (*Controller) AddUpstream added in v0.1.0

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

AddUpstream TODO

func (*Controller) DeleteUpstream added in v0.1.0

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

DeleteUpstream TODO

func (*Controller) DownstreamInfo added in v0.1.0

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

DownstreamInfo TODO

func (*Controller) Downstreams added in v0.1.0

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

Downstreams TODO

func (*Controller) Info added in v0.1.0

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

Info TODO

func (*Controller) Pause added in v0.1.0

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

Pause TODO

func (*Controller) PauseUpstream added in v0.1.0

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

PauseUpstream TODO

func (*Controller) PopRequest added in v0.1.0

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

PopRequest TODO

func (*Controller) ProcessMemory added in v0.1.0

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

ProcessMemory TODO

func (*Controller) Queues added in v0.1.0

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

Queues TODO

func (*Controller) RedisInfo added in v0.1.0

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

RedisInfo TODO

func (*Controller) Resume added in v0.1.0

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

Resume TODO

func (*Controller) ResumeUpstream added in v0.1.0

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

ResumeUpstream TODO

func (*Controller) UpstreamInfo added in v0.1.0

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

UpstreamInfo TODO

func (*Controller) Upstreams added in v0.1.0

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

Upstreams TODO

func (*Controller) UpstreamsInfo added in v0.1.1

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

UpstreamsInfo TODO

Jump to

Keyboard shortcuts

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