model

package
v1.3.4-alpha6 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeFile = "file" // same as common/yakgrpc/yakit/projects.go
)

Variables

View Source
var (
	GlobalHTTPFlowCache = utils.NewTTLCache[*ypb.HTTPFlow](10 * time.Minute)
)

Functions

func FuzzParamsToGRPCFuzzableParam

func FuzzParamsToGRPCFuzzableParam(r *mutate.FuzzHTTPRequestParam, isHttps bool) *ypb.FuzzableParam

func GetProjectById

func GetProjectById(db *gorm.DB, id int64, Type string) (*schema.Project, error)

func SetHTTPFlowCacheGRPCModel

func SetHTTPFlowCacheGRPCModel(f *schema.HTTPFlow, full bool, m *ypb.HTTPFlow)

func ToHTTPFlowGRPCModel

func ToHTTPFlowGRPCModel(f *schema.HTTPFlow, full bool) (*ypb.HTTPFlow, error)

func ToHTTPFlowGRPCModelFull

func ToHTTPFlowGRPCModelFull(f *schema.HTTPFlow) (*ypb.HTTPFlow, error)

func ToLowhttpTraceInfoGRPCModel

func ToLowhttpTraceInfoGRPCModel(l *lowhttp.LowhttpTraceInfo) *ypb.TraceInfo

func ToProjectGRPCModel

func ToProjectGRPCModel(p *schema.Project, db *gorm.DB) *ypb.ProjectDescription

Types

This section is empty.

Jump to

Keyboard shortcuts

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