consts

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnExecuted = iota + 1
	Executing
	Completed
	ExecutionFailed
	Canceled
)
View Source
const (
	Agent = "算力" //运行中
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecuteState

type ExecuteState int32

type Operation

type Operation string
const (
	RentingFileStorage       Operation = "租用文件存储"
	RentingCloudServers      Operation = "租用云服务器"
	RedemptionCodeRedemption Operation = "兑换码兑换"
	AlipayRecharge           Operation = "支付宝充值"
)

type OrderPayTime

type OrderPayTime string
const (
	AlipayPayTime OrderPayTime = "30m"
)

type OrderSubject

type OrderSubject string
const (
	PayCycles OrderSubject = "共享算力Cycle购买"
)

type OrderSymbol

type OrderSymbol string
const (
	Recharge    OrderSymbol = "+"
	Consumption OrderSymbol = "-"
)

type PayOrderState

type PayOrderState string
const (
	WaitBuyerPay  PayOrderState = "WAIT_BUYER_PAY"
	TradeClosed   PayOrderState = "TRADE_CLOSED"
	TradeSuccess  PayOrderState = "TRADE_SUCCESS"
	TradeFinished PayOrderState = "TRADE_FINISHED"
)

type PaymentMethod

type PaymentMethod int32
const (
	Alipay PaymentMethod = iota + 1
	Wechat
	BankCard
	RedemptionCode
)

type ProviderType

type ProviderType int

type RenewalResourceType

type RenewalResourceType int

RenewalResourceType 续费资源类型

const (
	// RenewalResourceType_Resource  资源
	RenewalResourceType_Resource RenewalResourceType = iota
	// RenewalResourceType_Storage 存储
	RenewalResourceType_Storage
)

type RenewalState

type RenewalState int

RenewalState 续费状态

const (
	// RenewalState_IN_SERVICE 服务中
	RenewalState_IN_SERVICE RenewalState = iota
	// RenewalState_STOP 已停止
	RenewalState_STOP
)

type S3UserType

type S3UserType int8
const (
	PlatformCreation S3UserType = iota + 1
	UserCreation
)

type StorageProviderStatus

type StorageProviderStatus int
const (
	StorageProviderStatus_NOT_RUN    StorageProviderStatus = iota // 未运行
	StorageProviderStatus_SETUPING                                // 启动中
	StorageProviderStatus_SETUP_FAIL                              //启动失败
	StorageProviderStatus_RUNNING                                 //运行中
)

Jump to

Keyboard shortcuts

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