models

package
v0.0.0-...-84c4fc0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNetwork

func GetNetwork() *sys.NetConfig

func UpdateNetwork

func UpdateNetwork(net *sys.NetConfig) error

Types

type Model

type Model struct {
	ID        uint           `gorm:"primarykey" json:"id"`
	CreatedAt time.Time      `json:"createdAt"`
	UpdatedAt time.Time      `json:"updatedAt"`
	DeletedAt gorm.DeletedAt `gorm:"index" json:"deletedAt"`
}

type Node

type Node struct {
	Model
	Name     string                 `gorm:"column=name" json:"name"`
	OutBound map[string]interface{} `gorm:"column=outbound" json:"outBound"`
	Enable   bool                   `gorm:"column=enable" json:"enable"`
}

Jump to

Keyboard shortcuts

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