mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-10 09:16:46 +01:00
31 lines
680 B
Go
31 lines
680 B
Go
package tasker
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
type (
|
|
QueueName string
|
|
TaskName string
|
|
)
|
|
|
|
type Task struct {
|
|
Id string `json:"id"`
|
|
Payload json.RawMessage `json:"payload"`
|
|
}
|
|
|
|
const (
|
|
AccountPrepareTask TaskName = "sys:prepare_account"
|
|
AccountRegisterTask TaskName = "sys:register_account"
|
|
AccountGiftGasTask TaskName = "sys:gift_gas"
|
|
AccountGiftVoucherTask TaskName = "sys:gift_token"
|
|
AccountRefillGasTask TaskName = "sys:refill_gas"
|
|
SignTransferTask TaskName = "usr:sign_transfer"
|
|
DispatchTxTask TaskName = "rpc:dispatch"
|
|
)
|
|
|
|
const (
|
|
HighPriority QueueName = "high_priority"
|
|
DefaultPriority QueueName = "default_priority"
|
|
)
|