Documentation
¶
Index ¶
- func CloseX()
- func Count() int64
- func CountFiltered(severity, keyword string) (int64, error)
- func GetByID(id string, expandPoc, expandResult bool) (db2.ResultData, error)
- func InitX() error
- func InsertResultAndReturnID(r *result.Result) (int64, error)
- func InsertResultWithTaskID(r *result.Result, taskID string) (int64, error)
- func NewWebSqliteDB() error
- func SelectPage(severity, keyword string, page, pageSize int, expandPoc, expandResult bool) ([]db2.ResultData, error)
- func SelectX(severity, keyword, page string) ([]db2.ResultData, error)
- func SetResultX(result *result.Result)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountFiltered ¶ added in v3.2.0
func GetByID ¶ added in v3.2.0
func GetByID(id string, expandPoc, expandResult bool) (db2.ResultData, error)
新增:按ID查询报告详情,按需展开
func InsertResultAndReturnID ¶ added in v3.2.2
InsertResultAndReturnID 同步写入一条结果并返回插入的主键 id(带锁冲突重试)
func InsertResultWithTaskID ¶ added in v3.2.7
func NewWebSqliteDB ¶ added in v3.0.6
func NewWebSqliteDB() error
func SelectPage ¶ added in v3.2.0
func SelectPage(severity, keyword string, page, pageSize int, expandPoc, expandResult bool) ([]db2.ResultData, error)
调整:分页查询(支持 page/pageSize、大小写不敏感的 severity;按需展开大字段)
func SetResultX ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.