data_db_models

package
v0.0.0-...-dd13c3c Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAttackMappingByVendorMappingId

func DeleteAttackMappingByVendorMappingId(session *xorm.Session, vendorMappingId int64) (err error)

Delete uri filtering traffic

func DeleteVendorMappingById

func DeleteVendorMappingById(session *xorm.Session, id int64) (err error)

Delete uri filtering traffic

Types

type ACL

type ACL struct {
	Id           int64
	ClientId     int64 `xorm:"data_client_id"`
	Priority     int
	Name         string
	ACL          DataACL `xorm:"content"`
	ValidThrough time.Time
}

func (*ACL) TableName

func (_ *ACL) TableName() string

type Alias

type Alias struct {
	Id           int64
	ClientId     int64 `xorm:"data_client_id"`
	Name         string
	Alias        DataAlias `xorm:"content"`
	ValidThrough time.Time
}

func (*Alias) TableName

func (_ *Alias) TableName() string

type AttackMapping

type AttackMapping struct {
	Id                int64     `xorm:"'id' pk autoincr"`
	VendorMappingId   int64     `xorm:"'vendor_mapping_id' not null"`
	AttackId          int       `xorm:"'attack_id' not null"`
	AttackDescription string    `xorm:"'attack_description' not null"`
	Created           time.Time `xorm:"created"`
	Updated           time.Time `xorm:"updated"`
}

func (*AttackMapping) TableName

func (_ *AttackMapping) TableName() string

func (*AttackMapping) VendorMapping

func (_ *AttackMapping) VendorMapping() string

type Client

type Client struct {
	Id         int64
	CustomerId int
	Cuid       string
	Cdid       sql.NullString
}

func (*Client) TableName

func (_ *Client) TableName() string

type DataACL

type DataACL data_types.ACL

func (*DataACL) FromDB

func (p *DataACL) FromDB(data []byte) error

func (*DataACL) ToDB

func (p *DataACL) ToDB() ([]byte, error)

type DataAlias

type DataAlias data_types.Alias

func (*DataAlias) FromDB

func (p *DataAlias) FromDB(data []byte) error

func (*DataAlias) ToDB

func (p *DataAlias) ToDB() ([]byte, error)

type VendorMapping

type VendorMapping struct {
	Id              int64     `xorm:"'id' pk autoincr"`
	DataClientId    int64     `xorm:"'data_client_id' not null"`
	VendorId        int       `xorm:"'vendor_id' not null"`
	VendorName      string    `xorm:"'vendor_name'"`
	DescriptionLang string    `xorm:"'description_lang'"`
	LastUpdated     uint64    `xorm:"'last_updated' not null"`
	Created         time.Time `xorm:"created"`
	Updated         time.Time `xorm:"updated"`
}

Jump to

Keyboard shortcuts

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