broker

package
v0.0.0-...-23e819b Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2015 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

process

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker struct {
	// contains filtered or unexported fields
}

func NewBroker

func NewBroker(cfg *config.BrokerConfig) (*Broker, error)

func (*Broker) AddRequestToRedis

func (b *Broker) AddRequestToRedis(tr interface{}) error

func (*Broker) Close

func (b *Broker) Close()

func (*Broker) CreateRpcTaskRequest

func (b *Broker) CreateRpcTaskRequest(c *echo.Context) error

func (*Broker) CreateScriptTaskRequest

func (b *Broker) CreateScriptTaskRequest(c *echo.Context) error

func (*Broker) FailTaskCount

func (b *Broker) FailTaskCount(c *echo.Context) error

func (*Broker) GetFailTaskCount

func (b *Broker) GetFailTaskCount(date string) (int64, error)

func (*Broker) GetSuccessTaskCount

func (b *Broker) GetSuccessTaskCount(date string) (int64, error)

func (*Broker) GetTaskResult

func (b *Broker) GetTaskResult(c *echo.Context) error

func (*Broker) GetUndoTaskCount

func (b *Broker) GetUndoTaskCount() (int64, error)

func (*Broker) HandleFailTask

func (b *Broker) HandleFailTask() error

处理失败的任务

func (*Broker) HandleRequest

func (b *Broker) HandleRequest(request *task.TaskRequest) error

func (*Broker) HandleTaskResult

func (b *Broker) HandleTaskResult(uuid string) (*task.Reply, error)

func (*Broker) RegisterMiddleware

func (b *Broker) RegisterMiddleware()

func (*Broker) RegisterURL

func (b *Broker) RegisterURL()

func (*Broker) Run

func (b *Broker) Run()

func (*Broker) SetFailTaskCount

func (b *Broker) SetFailTaskCount(reqKey string) error

func (*Broker) SuccessTaskCount

func (b *Broker) SuccessTaskCount(c *echo.Context) error

func (*Broker) UndoTaskCount

func (b *Broker) UndoTaskCount(c *echo.Context) error

Jump to

Keyboard shortcuts

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