Documentation ¶
Index ¶
- Constants
- func CountRows(tableName, columnName string, txn *gorp.Transaction) (int64, error)
- func DefineCategoryTable(dbm *gorp.DbMap)
- func DefineDeviceTable(dbm *gorp.DbMap)
- func DefineFileTable(dbm *gorp.DbMap)
- func DefineHostTable(dbm *gorp.DbMap)
- func DefineLogTable(dbm *gorp.DbMap)
- func DefineLoglevelTable(dbm *gorp.DbMap)
- func DefineLogtypeTable(dbm *gorp.DbMap)
- func DefineProfileTable(dbm *gorp.DbMap)
- func DefineServiceTable(dbm *gorp.DbMap)
- func DefineUserTable(dbm *gorp.DbMap)
- func DefineUtmstatusTable(dbm *gorp.DbMap)
- func DefineVirusTable(dbm *gorp.DbMap)
- func DefineVirusdefTable(dbm *gorp.DbMap)
- func DefineWebfilterTable(dbm *gorp.DbMap)
- func InitAllTables(dbm *gorp.DbMap) error
- func InitLoglevelTable(txn *gorp.Transaction)
- func InitUtmstatusTable(txn *gorp.Transaction)
- func SetNotNull(cm *gorp.TableMap, colName ...string)
- type Category
- type Device
- type File
- type Host
- type Log
- type LogLevel
- type LogType
- type Profile
- type Service
- type User
- type UtmStatus
- type Virus
- type VirusDef
- type WebFilter
Constants ¶
View Source
const (
SQL_MODEL_COUNT = `SELECT count(%s) AS count FROM %s`
)
Variables ¶
This section is empty.
Functions ¶
func DefineCategoryTable ¶
func DefineDeviceTable ¶
func DefineFileTable ¶
func DefineHostTable ¶
func DefineLogTable ¶
func DefineLoglevelTable ¶
func DefineLogtypeTable ¶
func DefineProfileTable ¶
func DefineServiceTable ¶
func DefineUserTable ¶
func DefineUtmstatusTable ¶
func DefineVirusTable ¶
func DefineVirusdefTable ¶
func DefineWebfilterTable ¶
func InitAllTables ¶
func InitLoglevelTable ¶
func InitLoglevelTable(txn *gorp.Transaction)
func InitUtmstatusTable ¶
func InitUtmstatusTable(txn *gorp.Transaction)
func SetNotNull ¶
Types ¶
type Host ¶
type Log ¶
type Log struct { Id int64 `db:"id"` FileId int64 `db:"file"` LogtypeId int64 `db:"logtype"` DeviceId int64 `db:"device"` LevelId int64 `db:"level"` UserId int64 `db:"user"` ServiceId int64 `db:"service"` LogId int64 `db:"log_id"` Date time.Time `db:"date"` SessionId int64 `db:"session_id"` PolicyId int64 `db:"policy_id"` SourceIp string `db:"source_ip"` SourceIf string `db:"source_if"` DestIp string `db:"dest_ip"` DestPort uint16 `db:"dest_port"` DestIf string `db:"dest_if"` SentByte uint64 `db:"sent_byte"` ReceivedByte uint64 `db:"received_byte"` Message *string `db:"message"` File *File `db:"-"` LogType *LogType `db:"-"` Device *Device `db:"-"` Level *LogLevel `db:"-"` User *User `db:"-"` Service *Service `db:"-"` }
type Virus ¶
type WebFilter ¶
type WebFilter struct { Id int64 `db:"id"` ProfileId int64 `db:"profile"` StatusId int64 `db:"status"` HostId int64 `db:"host"` CategoryId *int64 `db:"category"` Url string `db:"url"` Log *Log `db:"-"` Profile *Profile `db:"-"` Status *UtmStatus `db:"-"` Host *Host `db:"-"` Category *Category `db:"-"` }
Click to show internal directories.
Click to hide internal directories.