entity

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

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network struct {
	ID           string   `json:"id"`
	Name         string   `json:"name"`
	Cidr         string   `json:"cidr"`
	UsedIPs      []string `json:"used_ips"`      // 存储分配的地址
	AvailableIPs []string `json:"available_ips"` // 存储可用的地址
	CreatedAt    int64    `json:"created_at"`
}

func (Network) Mask

func (n Network) Mask() string

type QueryNetwork

type QueryNetwork struct {
	Name          string
	Cidr          string
	SortDirection string // 排序方向
	IncludeCounts bool
	PageSize      int // 每页大小
	PageNumber    int // 页码
}

Jump to

Keyboard shortcuts

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