dao

package
v0.0.0-...-09f7846 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSubnet

func CheckSubnet(id string) bool

func GetAllSubnet

func GetAllSubnet() []string

func InsertStat

func InsertStat(ip string, port uint16, hash string, send, recv uint64) error

func NewDao

func NewDao(c *Config)

func SaveData

func SaveData(data interface{})

Types

type Config

type Config struct {
	Ip   string
	Port uint16
	User string
	Pwd  string
	Db   string
}

type Stat

type Stat struct {
	Ip   string
	Port uint16
	Hash string
	Send uint64
	Recv uint64
}

type Subnet

type Subnet struct {
	Pubkey string
}

Jump to

Keyboard shortcuts

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