model

package
v0.0.0-...-f4a4805 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 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 Authz

type Authz struct {
	gorm.Model
	AccessKey string `gorm:"column:access_key" json:"access_key" form:"access_key"` // access key
	SecretKey string `gorm:"column:secret_key" json:"secret_key" form:"secret_key"` // secret key
	Role      string `gorm:"column:role" json:"role" form:"role"`                   // role: admin/miner/developer
}

func (Authz) TableName

func (Authz) TableName() string

type Node

type Node struct {
	gorm.Model
	MinerAddr   string `gorm:"column:miner_addr" json:"miner_addr" form:"miner_addr"`       // miner addr
	Domain      string `gorm:"column:domain" json:"domain" form:"domain"`                   // domain
	PaymentSecs int    `gorm:"column:payment_secs" json:"payment_secs" form:"payment_secs"` // seconds to be paid
}

func (Node) TableName

func (Node) TableName() string

Jump to

Keyboard shortcuts

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