Documentation ¶
Index ¶
- Constants
- func MarshalRequest(v interface{}) ([]machineryv1tasks.Arg, error)
- func UnmarshalRequest(data string, v interface{}) error
- func UnmarshalResponse(data []reflect.Value, v interface{}) error
- type Config
- type GroupJobState
- type Job
- type MachineryLogger
- func (m *MachineryLogger) Fatal(args ...interface{})
- func (m *MachineryLogger) Fatalf(format string, args ...interface{})
- func (m *MachineryLogger) Fatalln(args ...interface{})
- func (m *MachineryLogger) Panic(args ...interface{})
- func (m *MachineryLogger) Panicf(format string, args ...interface{})
- func (m *MachineryLogger) Panicln(args ...interface{})
- func (m *MachineryLogger) Print(args ...interface{})
- func (m *MachineryLogger) Printf(format string, args ...interface{})
- func (m *MachineryLogger) Println(args ...interface{})
- type PreheatRequest
- type PreheatResponse
- type Queue
Constants ¶
View Source
const ( GlobalQueue = Queue("global") SchedulersQueue = Queue("schedulers") )
Queue Name
View Source
const (
DefaultResultsExpireIn = 86400
)
View Source
const (
PreheatJob = "preheat"
)
Job Name
Variables ¶
This section is empty.
Functions ¶
func MarshalRequest ¶
func MarshalRequest(v interface{}) ([]machineryv1tasks.Arg, error)
func UnmarshalRequest ¶
func UnmarshalResponse ¶
Types ¶
type GroupJobState ¶
type Job ¶
type Job struct { Server *machinery.Server Worker *machinery.Worker Queue Queue }
func (*Job) GetGroupJobState ¶
func (t *Job) GetGroupJobState(groupUUID string) (*GroupJobState, error)
func (*Job) RegisterJob ¶
type MachineryLogger ¶ added in v2.0.1
type MachineryLogger struct{}
func (*MachineryLogger) Fatal ¶ added in v2.0.1
func (m *MachineryLogger) Fatal(args ...interface{})
Fatal sends to logger.Fatal
func (*MachineryLogger) Fatalf ¶ added in v2.0.1
func (m *MachineryLogger) Fatalf(format string, args ...interface{})
Fatalf sends to logger.Fatalf
func (*MachineryLogger) Fatalln ¶ added in v2.0.1
func (m *MachineryLogger) Fatalln(args ...interface{})
Fatalln sends to logger.Fatal
func (*MachineryLogger) Panic ¶ added in v2.0.1
func (m *MachineryLogger) Panic(args ...interface{})
Panic sends to logger.Panic
func (*MachineryLogger) Panicf ¶ added in v2.0.1
func (m *MachineryLogger) Panicf(format string, args ...interface{})
Panicf sends to logger.Panic
func (*MachineryLogger) Panicln ¶ added in v2.0.1
func (m *MachineryLogger) Panicln(args ...interface{})
Panicln sends to logrus.Panic
func (*MachineryLogger) Print ¶ added in v2.0.1
func (m *MachineryLogger) Print(args ...interface{})
Print sends to logger.Info
func (*MachineryLogger) Printf ¶ added in v2.0.1
func (m *MachineryLogger) Printf(format string, args ...interface{})
Printf sends to logger.Infof
func (*MachineryLogger) Println ¶ added in v2.0.1
func (m *MachineryLogger) Println(args ...interface{})
Println sends to logger.Info
type PreheatRequest ¶
type PreheatResponse ¶
type PreheatResponse struct { }
Click to show internal directories.
Click to hide internal directories.