model

package
v0.0.0-...-6b52b4a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	ID        uint   `gorm:"primarykey" json:"id"`
	CreatedAt int64  `gorm:"autoCreateTime" json:"created_at"`
	UpdatedAt int64  `gorm:"autoUpdateTime" json:"updated_at"`
	ExpiredAt int64  `gorm:"autoExpiredTime" json:"expired_at"`
	Uuid      string `gorm:"uuid" json:"uuid"`
	Wallet    string `gorm:"wallet" json:"wallet"`
	ServerCid string `gorm:"server_cid" json:"server_cid"`
	Port      int    `gorm:"port" json:"port"`
}

func OrderToProvider

func OrderToProvider(order *schema.NodeOrder, pc *schema.ProviderConfig) *Provider

func (Provider) TableName

func (Provider) TableName() string

func (*Provider) ToNodeOrder

func (a *Provider) ToNodeOrder() *schema.NodeOrder

type Providers

type Providers []*Provider

Jump to

Keyboard shortcuts

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