record

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Channel

func Channel() chan BaseRecord

Types

type BaseRecord

type BaseRecord struct {
	Record      `gorm:"-" json:"-" notice:"-"`
	ID          uint      `gorm:"primarykey" form:"id" json:"id" notice:"-"`
	RuleName    string    `gorm:"index" form:"rule_name" json:"rule_name" notice:"rule"`
	Flag        string    `gorm:"index" form:"flag" json:"flag" `
	RemoteIP    string    `gorm:"index" form:"remote_ip" json:"remote_ip" notice:"remote_ip"`
	IpArea      string    `form:"ip_area" json:"ip_area" notice:"ip_area"`
	RequestTime time.Time `gorm:"index" form:"request_time" json:"request_time" notice:"-"`
}

func (BaseRecord) GetFlag

func (b BaseRecord) GetFlag() string

func (BaseRecord) Notice

func (b BaseRecord) Notice()

func (BaseRecord) PushToClient

func (b BaseRecord) PushToClient()

type Record

type Record interface {
	GetFlag() string
	PushToClient()
	Notice()
}

Jump to

Keyboard shortcuts

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