mmysql

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaData

type MetaData struct {
	Ip   string `json:"ip"`
	Loc  string `json:"loc"`
	Colo string `json:"colo"`
}

func (*MetaData) Scan

func (c *MetaData) Scan(input interface{}) error

func (MetaData) Value

func (c MetaData) Value() (driver.Value, error)

type Node

type Node struct {
	ID        uint   `gorm:"primarykey"`
	CreatedAt int64  `gorm:"autoCreateTime"`
	UpdatedAt int64  `gorm:"autoUpdateTime"`
	PeerId    string `json:"peer_id"`
	Addr      string `json:"addr"`
	Port      int    `json:"port"`
	IP        string `json:"ip"`
	Loc       string `json:"loc"`
	Colo      string `json:"colo"`
	Price     uint   `json:"price"`
	Type      string `json:"type"`
}

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