models

package
v0.0.0-...-826a30d Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collect

type Collect struct {
	ID         int
	Path       string    // 日志文件路径
	Topic      string    // 日志对应的Topic
	Server     *Server   `orm:"rel(fk)"`                     // 服务器信息
	CreateTime time.Time `orm:"type(datetime);auto_now_add"` // 添加时间
}

Collect 日志收集表

type Server

type Server struct {
	ID       int
	Hostname string     `orm:"unique"` // 主机名称
	Address  string     // 主机地址
	Collect  []*Collect `orm:"reverse(many)"`
}

Server 主机表

type User

type User struct {
	ID       int
	Username string `orm:"unique"` // 用户名
	Password string // 用户密码
}

User 用户表

Jump to

Keyboard shortcuts

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