routers

package
v0.0.0-...-35d75ae Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(resp http.ResponseWriter, req *http.Request)

Delete 删除job

func Get

func Get(resp http.ResponseWriter, req *http.Request)

Get 查询job

func Pop

func Pop(resp http.ResponseWriter, req *http.Request)

Pop 获取job

func Push

func Push(resp http.ResponseWriter, req *http.Request)

Push 添加job

Types

type IdRequest

type IdRequest struct {
	Id string `json:"id"`
}

IdRequest JobId请求json

type ResponseBody

type ResponseBody struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

ResponseBody 响应Body格式

type TopicRequest

type TopicRequest struct {
	Topic string `json:"topic"`
}

TopicRequest Job类型请求json

Source Files

  • routers.go

Jump to

Keyboard shortcuts

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