constant

package
v0.0.0-...-bcfa5ee Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BtcAddress

type BtcAddress struct {
	IdType
	Address string  `json:"address"`
	Index   uint64  `json:"index"`
	Utxos   *string `json:"utxos,omitempty"`

	DbTime
}

type BtcTx

type BtcTx struct {
	IdType
	TaskId  uint64 `json:"task_id"`
	TxId    string `json:"tx_id"`
	TxHex   string `json:"tx_hex"`
	Confirm uint64 `json:"confirm"`
	DbTime
}

type BtcUtxo

type BtcUtxo struct {
	IdType
	Address string `json:"address"`
	TxId    string `json:"tx_id"`
	Index   uint64 `json:"index"`
	Value   string `json:"value"`
	Status  uint64 `json:"status"`
	DbTime
}

type DbTime

type DbTime struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	UpdatedAt time.Time `json:"updated_at,omitempty"`
}

type IdType

type IdType struct {
	Id uint64 `json:"id,omitempty"`
}

type Task

type Task struct {
	IdType
	Name     string                 `json:"name"`
	Desc     string                 `json:"desc"`
	Interval uint64                 `json:"interval"`
	Data     map[string]interface{} `json:"data"`
	Status   TaskStatusType         `json:"status,omitempty"`
	Mark     string                 `json:"mark"`

	DbTime
}

type TaskRecord

type TaskRecord struct {
	IdType
	Name     string                 `json:"name"`
	Interval uint64                 `json:"interval"`
	Data     map[string]interface{} `json:"data"`
	Mark     string                 `json:"mark"`

	DbTime
}

type TaskStatusType

type TaskStatusType uint64
const (
	TaskStatusType_WaitExec      TaskStatusType = 1
	TaskStatusType_Executing     TaskStatusType = 2
	TaskStatusType_WaitExit      TaskStatusType = 5
	TaskStatusType_Exited        TaskStatusType = 3
	TaskStatusType_ExitedWithErr TaskStatusType = 4
)

type TaskTypeType

type TaskTypeType uint64
const (
	TaskTypeType_Test TaskTypeType = 0
)

type UTXO

type UTXO struct {
	TxId  string  `json:"tx_id"`
	Index uint64  `json:"index"`
	Value float64 `json:"value"`
}

Jump to

Keyboard shortcuts

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