models

package
v0.0.0-...-4b0d453 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	CreatedAt time.Time `bson:"created_at"`
	UpdatedAt time.Time `bson:"updated_at"`
	Name      string    `bson:"name"`
	Login     string    `bson:"login"`
	Hash      string    `bson:"hash"`
	Subnet    string    `bson:"subnet"`
	IP        string    `bson:"ip"`
	Visible   bool      `bson:"visible"`
	Blocked   bool      `bson:"blocked"`
}

type EntityInfo

type EntityInfo struct {
	CreatedAt time.Time `bson:"created_at" json:"created_at"`
	UpdatedAt time.Time `bson:"updated_at" json:"updated_at"`
	Name      string    `bson:"name" json:"name"`
	Login     string    `bson:"login" json:"login"`
	Subnet    string    `bson:"subnet" json:"subnet"`
	IP        string    `bson:"ip" json:"ip"`
	Visible   bool      `bson:"visible" json:"visible"`
	Blocked   bool      `bson:"blocked" json:"blocked"`
}

Jump to

Keyboard shortcuts

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