traffic

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the traffic type in the database.
	Label = "traffic"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldMethod holds the string denoting the method field in the database.
	FieldMethod = "method"
	// FieldURL holds the string denoting the url field in the database.
	FieldURL = "url"
	// FieldScheme holds the string denoting the scheme field in the database.
	FieldScheme = "scheme"
	// FieldHost holds the string denoting the host field in the database.
	FieldHost = "host"
	// FieldPath holds the string denoting the path field in the database.
	FieldPath = "path"
	// FieldQuery holds the string denoting the query field in the database.
	FieldQuery = "query"
	// FieldRequestHeaders holds the string denoting the request_headers field in the database.
	FieldRequestHeaders = "request_headers"
	// FieldRequestBody holds the string denoting the request_body field in the database.
	FieldRequestBody = "request_body"
	// FieldRequestBodySize holds the string denoting the request_body_size field in the database.
	FieldRequestBodySize = "request_body_size"
	// FieldRequestIsBinary holds the string denoting the request_is_binary field in the database.
	FieldRequestIsBinary = "request_is_binary"
	// FieldContentType holds the string denoting the content_type field in the database.
	FieldContentType = "content_type"
	// FieldStatusCode holds the string denoting the status_code field in the database.
	FieldStatusCode = "status_code"
	// FieldStatusText holds the string denoting the status_text field in the database.
	FieldStatusText = "status_text"
	// FieldResponseHeaders holds the string denoting the response_headers field in the database.
	FieldResponseHeaders = "response_headers"
	// FieldResponseBody holds the string denoting the response_body field in the database.
	FieldResponseBody = "response_body"
	// FieldResponseBodySize holds the string denoting the response_body_size field in the database.
	FieldResponseBodySize = "response_body_size"
	// FieldResponseIsBinary holds the string denoting the response_is_binary field in the database.
	FieldResponseIsBinary = "response_is_binary"
	// FieldResponseContentType holds the string denoting the response_content_type field in the database.
	FieldResponseContentType = "response_content_type"
	// FieldStartedAt holds the string denoting the started_at field in the database.
	FieldStartedAt = "started_at"
	// FieldDurationMs holds the string denoting the duration_ms field in the database.
	FieldDurationMs = "duration_ms"
	// FieldTtfbMs holds the string denoting the ttfb_ms field in the database.
	FieldTtfbMs = "ttfb_ms"
	// FieldClientIP holds the string denoting the client_ip field in the database.
	FieldClientIP = "client_ip"
	// FieldError holds the string denoting the error field in the database.
	FieldError = "error"
	// FieldTags holds the string denoting the tags field in the database.
	FieldTags = "tags"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeProxy holds the string denoting the proxy edge name in mutations.
	EdgeProxy = "proxy"
	// Table holds the table name of the traffic in the database.
	Table = "traffics"
	// ProxyTable is the table that holds the proxy relation/edge.
	ProxyTable = "traffics"
	// ProxyInverseTable is the table name for the Proxy entity.
	// It exists in this package in order to avoid circular dependency with the "proxy" package.
	ProxyInverseTable = "proxies"
	// ProxyColumn is the table column denoting the proxy relation/edge.
	ProxyColumn = "proxy_traffic"
)

Variables

View Source
var (
	// MethodValidator is a validator for the "method" field. It is called by the builders before save.
	MethodValidator func(string) error
	// URLValidator is a validator for the "url" field. It is called by the builders before save.
	URLValidator func(string) error
	// HostValidator is a validator for the "host" field. It is called by the builders before save.
	HostValidator func(string) error
	// DefaultRequestBodySize holds the default value on creation for the "request_body_size" field.
	DefaultRequestBodySize int64
	// DefaultRequestIsBinary holds the default value on creation for the "request_is_binary" field.
	DefaultRequestIsBinary bool
	// DefaultResponseBodySize holds the default value on creation for the "response_body_size" field.
	DefaultResponseBodySize int64
	// DefaultResponseIsBinary holds the default value on creation for the "response_is_binary" field.
	DefaultResponseIsBinary bool
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Columns holds all SQL columns for traffic fields.

View Source
var ForeignKeys = []string{
	"proxy_traffic",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "traffics" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Traffic) predicate.Traffic

And groups predicates with the AND operator between them.

func ClientIP

func ClientIP(v string) predicate.Traffic

ClientIP applies equality check predicate on the "client_ip" field. It's identical to ClientIPEQ.

func ClientIPContains

func ClientIPContains(v string) predicate.Traffic

ClientIPContains applies the Contains predicate on the "client_ip" field.

func ClientIPContainsFold

func ClientIPContainsFold(v string) predicate.Traffic

ClientIPContainsFold applies the ContainsFold predicate on the "client_ip" field.

func ClientIPEQ

func ClientIPEQ(v string) predicate.Traffic

ClientIPEQ applies the EQ predicate on the "client_ip" field.

func ClientIPEqualFold

func ClientIPEqualFold(v string) predicate.Traffic

ClientIPEqualFold applies the EqualFold predicate on the "client_ip" field.

func ClientIPGT

func ClientIPGT(v string) predicate.Traffic

ClientIPGT applies the GT predicate on the "client_ip" field.

func ClientIPGTE

func ClientIPGTE(v string) predicate.Traffic

ClientIPGTE applies the GTE predicate on the "client_ip" field.

func ClientIPHasPrefix

func ClientIPHasPrefix(v string) predicate.Traffic

ClientIPHasPrefix applies the HasPrefix predicate on the "client_ip" field.

func ClientIPHasSuffix

func ClientIPHasSuffix(v string) predicate.Traffic

ClientIPHasSuffix applies the HasSuffix predicate on the "client_ip" field.

func ClientIPIn

func ClientIPIn(vs ...string) predicate.Traffic

ClientIPIn applies the In predicate on the "client_ip" field.

func ClientIPIsNil

func ClientIPIsNil() predicate.Traffic

ClientIPIsNil applies the IsNil predicate on the "client_ip" field.

func ClientIPLT

func ClientIPLT(v string) predicate.Traffic

ClientIPLT applies the LT predicate on the "client_ip" field.

func ClientIPLTE

func ClientIPLTE(v string) predicate.Traffic

ClientIPLTE applies the LTE predicate on the "client_ip" field.

func ClientIPNEQ

func ClientIPNEQ(v string) predicate.Traffic

ClientIPNEQ applies the NEQ predicate on the "client_ip" field.

func ClientIPNotIn

func ClientIPNotIn(vs ...string) predicate.Traffic

ClientIPNotIn applies the NotIn predicate on the "client_ip" field.

func ClientIPNotNil

func ClientIPNotNil() predicate.Traffic

ClientIPNotNil applies the NotNil predicate on the "client_ip" field.

func ContentType

func ContentType(v string) predicate.Traffic

ContentType applies equality check predicate on the "content_type" field. It's identical to ContentTypeEQ.

func ContentTypeContains

func ContentTypeContains(v string) predicate.Traffic

ContentTypeContains applies the Contains predicate on the "content_type" field.

func ContentTypeContainsFold

func ContentTypeContainsFold(v string) predicate.Traffic

ContentTypeContainsFold applies the ContainsFold predicate on the "content_type" field.

func ContentTypeEQ

func ContentTypeEQ(v string) predicate.Traffic

ContentTypeEQ applies the EQ predicate on the "content_type" field.

func ContentTypeEqualFold

func ContentTypeEqualFold(v string) predicate.Traffic

ContentTypeEqualFold applies the EqualFold predicate on the "content_type" field.

func ContentTypeGT

func ContentTypeGT(v string) predicate.Traffic

ContentTypeGT applies the GT predicate on the "content_type" field.

func ContentTypeGTE

func ContentTypeGTE(v string) predicate.Traffic

ContentTypeGTE applies the GTE predicate on the "content_type" field.

func ContentTypeHasPrefix

func ContentTypeHasPrefix(v string) predicate.Traffic

ContentTypeHasPrefix applies the HasPrefix predicate on the "content_type" field.

func ContentTypeHasSuffix

func ContentTypeHasSuffix(v string) predicate.Traffic

ContentTypeHasSuffix applies the HasSuffix predicate on the "content_type" field.

func ContentTypeIn

func ContentTypeIn(vs ...string) predicate.Traffic

ContentTypeIn applies the In predicate on the "content_type" field.

func ContentTypeIsNil

func ContentTypeIsNil() predicate.Traffic

ContentTypeIsNil applies the IsNil predicate on the "content_type" field.

func ContentTypeLT

func ContentTypeLT(v string) predicate.Traffic

ContentTypeLT applies the LT predicate on the "content_type" field.

func ContentTypeLTE

func ContentTypeLTE(v string) predicate.Traffic

ContentTypeLTE applies the LTE predicate on the "content_type" field.

func ContentTypeNEQ

func ContentTypeNEQ(v string) predicate.Traffic

ContentTypeNEQ applies the NEQ predicate on the "content_type" field.

func ContentTypeNotIn

func ContentTypeNotIn(vs ...string) predicate.Traffic

ContentTypeNotIn applies the NotIn predicate on the "content_type" field.

func ContentTypeNotNil

func ContentTypeNotNil() predicate.Traffic

ContentTypeNotNil applies the NotNil predicate on the "content_type" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Traffic

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Traffic

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Traffic

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Traffic

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Traffic

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Traffic

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Traffic

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Traffic

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Traffic

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DurationMs

func DurationMs(v float64) predicate.Traffic

DurationMs applies equality check predicate on the "duration_ms" field. It's identical to DurationMsEQ.

func DurationMsEQ

func DurationMsEQ(v float64) predicate.Traffic

DurationMsEQ applies the EQ predicate on the "duration_ms" field.

func DurationMsGT

func DurationMsGT(v float64) predicate.Traffic

DurationMsGT applies the GT predicate on the "duration_ms" field.

func DurationMsGTE

func DurationMsGTE(v float64) predicate.Traffic

DurationMsGTE applies the GTE predicate on the "duration_ms" field.

func DurationMsIn

func DurationMsIn(vs ...float64) predicate.Traffic

DurationMsIn applies the In predicate on the "duration_ms" field.

func DurationMsLT

func DurationMsLT(v float64) predicate.Traffic

DurationMsLT applies the LT predicate on the "duration_ms" field.

func DurationMsLTE

func DurationMsLTE(v float64) predicate.Traffic

DurationMsLTE applies the LTE predicate on the "duration_ms" field.

func DurationMsNEQ

func DurationMsNEQ(v float64) predicate.Traffic

DurationMsNEQ applies the NEQ predicate on the "duration_ms" field.

func DurationMsNotIn

func DurationMsNotIn(vs ...float64) predicate.Traffic

DurationMsNotIn applies the NotIn predicate on the "duration_ms" field.

func Error

func Error(v string) predicate.Traffic

Error applies equality check predicate on the "error" field. It's identical to ErrorEQ.

func ErrorContains

func ErrorContains(v string) predicate.Traffic

ErrorContains applies the Contains predicate on the "error" field.

func ErrorContainsFold

func ErrorContainsFold(v string) predicate.Traffic

ErrorContainsFold applies the ContainsFold predicate on the "error" field.

func ErrorEQ

func ErrorEQ(v string) predicate.Traffic

ErrorEQ applies the EQ predicate on the "error" field.

func ErrorEqualFold

func ErrorEqualFold(v string) predicate.Traffic

ErrorEqualFold applies the EqualFold predicate on the "error" field.

func ErrorGT

func ErrorGT(v string) predicate.Traffic

ErrorGT applies the GT predicate on the "error" field.

func ErrorGTE

func ErrorGTE(v string) predicate.Traffic

ErrorGTE applies the GTE predicate on the "error" field.

func ErrorHasPrefix

func ErrorHasPrefix(v string) predicate.Traffic

ErrorHasPrefix applies the HasPrefix predicate on the "error" field.

func ErrorHasSuffix

func ErrorHasSuffix(v string) predicate.Traffic

ErrorHasSuffix applies the HasSuffix predicate on the "error" field.

func ErrorIn

func ErrorIn(vs ...string) predicate.Traffic

ErrorIn applies the In predicate on the "error" field.

func ErrorIsNil

func ErrorIsNil() predicate.Traffic

ErrorIsNil applies the IsNil predicate on the "error" field.

func ErrorLT

func ErrorLT(v string) predicate.Traffic

ErrorLT applies the LT predicate on the "error" field.

func ErrorLTE

func ErrorLTE(v string) predicate.Traffic

ErrorLTE applies the LTE predicate on the "error" field.

func ErrorNEQ

func ErrorNEQ(v string) predicate.Traffic

ErrorNEQ applies the NEQ predicate on the "error" field.

func ErrorNotIn

func ErrorNotIn(vs ...string) predicate.Traffic

ErrorNotIn applies the NotIn predicate on the "error" field.

func ErrorNotNil

func ErrorNotNil() predicate.Traffic

ErrorNotNil applies the NotNil predicate on the "error" field.

func HasProxy

func HasProxy() predicate.Traffic

HasProxy applies the HasEdge predicate on the "proxy" edge.

func HasProxyWith

func HasProxyWith(preds ...predicate.Proxy) predicate.Traffic

HasProxyWith applies the HasEdge predicate on the "proxy" edge with a given conditions (other predicates).

func Host

func Host(v string) predicate.Traffic

Host applies equality check predicate on the "host" field. It's identical to HostEQ.

func HostContains

func HostContains(v string) predicate.Traffic

HostContains applies the Contains predicate on the "host" field.

func HostContainsFold

func HostContainsFold(v string) predicate.Traffic

HostContainsFold applies the ContainsFold predicate on the "host" field.

func HostEQ

func HostEQ(v string) predicate.Traffic

HostEQ applies the EQ predicate on the "host" field.

func HostEqualFold

func HostEqualFold(v string) predicate.Traffic

HostEqualFold applies the EqualFold predicate on the "host" field.

func HostGT

func HostGT(v string) predicate.Traffic

HostGT applies the GT predicate on the "host" field.

func HostGTE

func HostGTE(v string) predicate.Traffic

HostGTE applies the GTE predicate on the "host" field.

func HostHasPrefix

func HostHasPrefix(v string) predicate.Traffic

HostHasPrefix applies the HasPrefix predicate on the "host" field.

func HostHasSuffix

func HostHasSuffix(v string) predicate.Traffic

HostHasSuffix applies the HasSuffix predicate on the "host" field.

func HostIn

func HostIn(vs ...string) predicate.Traffic

HostIn applies the In predicate on the "host" field.

func HostLT

func HostLT(v string) predicate.Traffic

HostLT applies the LT predicate on the "host" field.

func HostLTE

func HostLTE(v string) predicate.Traffic

HostLTE applies the LTE predicate on the "host" field.

func HostNEQ

func HostNEQ(v string) predicate.Traffic

HostNEQ applies the NEQ predicate on the "host" field.

func HostNotIn

func HostNotIn(vs ...string) predicate.Traffic

HostNotIn applies the NotIn predicate on the "host" field.

func ID

func ID(id int) predicate.Traffic

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Traffic

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Traffic

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Traffic

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Traffic

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Traffic

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Traffic

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Traffic

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Traffic

IDNotIn applies the NotIn predicate on the ID field.

func Method

func Method(v string) predicate.Traffic

Method applies equality check predicate on the "method" field. It's identical to MethodEQ.

func MethodContains

func MethodContains(v string) predicate.Traffic

MethodContains applies the Contains predicate on the "method" field.

func MethodContainsFold

func MethodContainsFold(v string) predicate.Traffic

MethodContainsFold applies the ContainsFold predicate on the "method" field.

func MethodEQ

func MethodEQ(v string) predicate.Traffic

MethodEQ applies the EQ predicate on the "method" field.

func MethodEqualFold

func MethodEqualFold(v string) predicate.Traffic

MethodEqualFold applies the EqualFold predicate on the "method" field.

func MethodGT

func MethodGT(v string) predicate.Traffic

MethodGT applies the GT predicate on the "method" field.

func MethodGTE

func MethodGTE(v string) predicate.Traffic

MethodGTE applies the GTE predicate on the "method" field.

func MethodHasPrefix

func MethodHasPrefix(v string) predicate.Traffic

MethodHasPrefix applies the HasPrefix predicate on the "method" field.

func MethodHasSuffix

func MethodHasSuffix(v string) predicate.Traffic

MethodHasSuffix applies the HasSuffix predicate on the "method" field.

func MethodIn

func MethodIn(vs ...string) predicate.Traffic

MethodIn applies the In predicate on the "method" field.

func MethodLT

func MethodLT(v string) predicate.Traffic

MethodLT applies the LT predicate on the "method" field.

func MethodLTE

func MethodLTE(v string) predicate.Traffic

MethodLTE applies the LTE predicate on the "method" field.

func MethodNEQ

func MethodNEQ(v string) predicate.Traffic

MethodNEQ applies the NEQ predicate on the "method" field.

func MethodNotIn

func MethodNotIn(vs ...string) predicate.Traffic

MethodNotIn applies the NotIn predicate on the "method" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Traffic) predicate.Traffic

Or groups predicates with the OR operator between them.

func Path

func Path(v string) predicate.Traffic

Path applies equality check predicate on the "path" field. It's identical to PathEQ.

func PathContains

func PathContains(v string) predicate.Traffic

PathContains applies the Contains predicate on the "path" field.

func PathContainsFold

func PathContainsFold(v string) predicate.Traffic

PathContainsFold applies the ContainsFold predicate on the "path" field.

func PathEQ

func PathEQ(v string) predicate.Traffic

PathEQ applies the EQ predicate on the "path" field.

func PathEqualFold

func PathEqualFold(v string) predicate.Traffic

PathEqualFold applies the EqualFold predicate on the "path" field.

func PathGT

func PathGT(v string) predicate.Traffic

PathGT applies the GT predicate on the "path" field.

func PathGTE

func PathGTE(v string) predicate.Traffic

PathGTE applies the GTE predicate on the "path" field.

func PathHasPrefix

func PathHasPrefix(v string) predicate.Traffic

PathHasPrefix applies the HasPrefix predicate on the "path" field.

func PathHasSuffix

func PathHasSuffix(v string) predicate.Traffic

PathHasSuffix applies the HasSuffix predicate on the "path" field.

func PathIn

func PathIn(vs ...string) predicate.Traffic

PathIn applies the In predicate on the "path" field.

func PathLT

func PathLT(v string) predicate.Traffic

PathLT applies the LT predicate on the "path" field.

func PathLTE

func PathLTE(v string) predicate.Traffic

PathLTE applies the LTE predicate on the "path" field.

func PathNEQ

func PathNEQ(v string) predicate.Traffic

PathNEQ applies the NEQ predicate on the "path" field.

func PathNotIn

func PathNotIn(vs ...string) predicate.Traffic

PathNotIn applies the NotIn predicate on the "path" field.

func Query

func Query(v string) predicate.Traffic

Query applies equality check predicate on the "query" field. It's identical to QueryEQ.

func QueryContains

func QueryContains(v string) predicate.Traffic

QueryContains applies the Contains predicate on the "query" field.

func QueryContainsFold

func QueryContainsFold(v string) predicate.Traffic

QueryContainsFold applies the ContainsFold predicate on the "query" field.

func QueryEQ

func QueryEQ(v string) predicate.Traffic

QueryEQ applies the EQ predicate on the "query" field.

func QueryEqualFold

func QueryEqualFold(v string) predicate.Traffic

QueryEqualFold applies the EqualFold predicate on the "query" field.

func QueryGT

func QueryGT(v string) predicate.Traffic

QueryGT applies the GT predicate on the "query" field.

func QueryGTE

func QueryGTE(v string) predicate.Traffic

QueryGTE applies the GTE predicate on the "query" field.

func QueryHasPrefix

func QueryHasPrefix(v string) predicate.Traffic

QueryHasPrefix applies the HasPrefix predicate on the "query" field.

func QueryHasSuffix

func QueryHasSuffix(v string) predicate.Traffic

QueryHasSuffix applies the HasSuffix predicate on the "query" field.

func QueryIn

func QueryIn(vs ...string) predicate.Traffic

QueryIn applies the In predicate on the "query" field.

func QueryIsNil

func QueryIsNil() predicate.Traffic

QueryIsNil applies the IsNil predicate on the "query" field.

func QueryLT

func QueryLT(v string) predicate.Traffic

QueryLT applies the LT predicate on the "query" field.

func QueryLTE

func QueryLTE(v string) predicate.Traffic

QueryLTE applies the LTE predicate on the "query" field.

func QueryNEQ

func QueryNEQ(v string) predicate.Traffic

QueryNEQ applies the NEQ predicate on the "query" field.

func QueryNotIn

func QueryNotIn(vs ...string) predicate.Traffic

QueryNotIn applies the NotIn predicate on the "query" field.

func QueryNotNil

func QueryNotNil() predicate.Traffic

QueryNotNil applies the NotNil predicate on the "query" field.

func RequestBody

func RequestBody(v []byte) predicate.Traffic

RequestBody applies equality check predicate on the "request_body" field. It's identical to RequestBodyEQ.

func RequestBodyEQ

func RequestBodyEQ(v []byte) predicate.Traffic

RequestBodyEQ applies the EQ predicate on the "request_body" field.

func RequestBodyGT

func RequestBodyGT(v []byte) predicate.Traffic

RequestBodyGT applies the GT predicate on the "request_body" field.

func RequestBodyGTE

func RequestBodyGTE(v []byte) predicate.Traffic

RequestBodyGTE applies the GTE predicate on the "request_body" field.

func RequestBodyIn

func RequestBodyIn(vs ...[]byte) predicate.Traffic

RequestBodyIn applies the In predicate on the "request_body" field.

func RequestBodyIsNil

func RequestBodyIsNil() predicate.Traffic

RequestBodyIsNil applies the IsNil predicate on the "request_body" field.

func RequestBodyLT

func RequestBodyLT(v []byte) predicate.Traffic

RequestBodyLT applies the LT predicate on the "request_body" field.

func RequestBodyLTE

func RequestBodyLTE(v []byte) predicate.Traffic

RequestBodyLTE applies the LTE predicate on the "request_body" field.

func RequestBodyNEQ

func RequestBodyNEQ(v []byte) predicate.Traffic

RequestBodyNEQ applies the NEQ predicate on the "request_body" field.

func RequestBodyNotIn

func RequestBodyNotIn(vs ...[]byte) predicate.Traffic

RequestBodyNotIn applies the NotIn predicate on the "request_body" field.

func RequestBodyNotNil

func RequestBodyNotNil() predicate.Traffic

RequestBodyNotNil applies the NotNil predicate on the "request_body" field.

func RequestBodySize

func RequestBodySize(v int64) predicate.Traffic

RequestBodySize applies equality check predicate on the "request_body_size" field. It's identical to RequestBodySizeEQ.

func RequestBodySizeEQ

func RequestBodySizeEQ(v int64) predicate.Traffic

RequestBodySizeEQ applies the EQ predicate on the "request_body_size" field.

func RequestBodySizeGT

func RequestBodySizeGT(v int64) predicate.Traffic

RequestBodySizeGT applies the GT predicate on the "request_body_size" field.

func RequestBodySizeGTE

func RequestBodySizeGTE(v int64) predicate.Traffic

RequestBodySizeGTE applies the GTE predicate on the "request_body_size" field.

func RequestBodySizeIn

func RequestBodySizeIn(vs ...int64) predicate.Traffic

RequestBodySizeIn applies the In predicate on the "request_body_size" field.

func RequestBodySizeLT

func RequestBodySizeLT(v int64) predicate.Traffic

RequestBodySizeLT applies the LT predicate on the "request_body_size" field.

func RequestBodySizeLTE

func RequestBodySizeLTE(v int64) predicate.Traffic

RequestBodySizeLTE applies the LTE predicate on the "request_body_size" field.

func RequestBodySizeNEQ

func RequestBodySizeNEQ(v int64) predicate.Traffic

RequestBodySizeNEQ applies the NEQ predicate on the "request_body_size" field.

func RequestBodySizeNotIn

func RequestBodySizeNotIn(vs ...int64) predicate.Traffic

RequestBodySizeNotIn applies the NotIn predicate on the "request_body_size" field.

func RequestHeadersIsNil

func RequestHeadersIsNil() predicate.Traffic

RequestHeadersIsNil applies the IsNil predicate on the "request_headers" field.

func RequestHeadersNotNil

func RequestHeadersNotNil() predicate.Traffic

RequestHeadersNotNil applies the NotNil predicate on the "request_headers" field.

func RequestIsBinary

func RequestIsBinary(v bool) predicate.Traffic

RequestIsBinary applies equality check predicate on the "request_is_binary" field. It's identical to RequestIsBinaryEQ.

func RequestIsBinaryEQ

func RequestIsBinaryEQ(v bool) predicate.Traffic

RequestIsBinaryEQ applies the EQ predicate on the "request_is_binary" field.

func RequestIsBinaryNEQ

func RequestIsBinaryNEQ(v bool) predicate.Traffic

RequestIsBinaryNEQ applies the NEQ predicate on the "request_is_binary" field.

func ResponseBody

func ResponseBody(v []byte) predicate.Traffic

ResponseBody applies equality check predicate on the "response_body" field. It's identical to ResponseBodyEQ.

func ResponseBodyEQ

func ResponseBodyEQ(v []byte) predicate.Traffic

ResponseBodyEQ applies the EQ predicate on the "response_body" field.

func ResponseBodyGT

func ResponseBodyGT(v []byte) predicate.Traffic

ResponseBodyGT applies the GT predicate on the "response_body" field.

func ResponseBodyGTE

func ResponseBodyGTE(v []byte) predicate.Traffic

ResponseBodyGTE applies the GTE predicate on the "response_body" field.

func ResponseBodyIn

func ResponseBodyIn(vs ...[]byte) predicate.Traffic

ResponseBodyIn applies the In predicate on the "response_body" field.

func ResponseBodyIsNil

func ResponseBodyIsNil() predicate.Traffic

ResponseBodyIsNil applies the IsNil predicate on the "response_body" field.

func ResponseBodyLT

func ResponseBodyLT(v []byte) predicate.Traffic

ResponseBodyLT applies the LT predicate on the "response_body" field.

func ResponseBodyLTE

func ResponseBodyLTE(v []byte) predicate.Traffic

ResponseBodyLTE applies the LTE predicate on the "response_body" field.

func ResponseBodyNEQ

func ResponseBodyNEQ(v []byte) predicate.Traffic

ResponseBodyNEQ applies the NEQ predicate on the "response_body" field.

func ResponseBodyNotIn

func ResponseBodyNotIn(vs ...[]byte) predicate.Traffic

ResponseBodyNotIn applies the NotIn predicate on the "response_body" field.

func ResponseBodyNotNil

func ResponseBodyNotNil() predicate.Traffic

ResponseBodyNotNil applies the NotNil predicate on the "response_body" field.

func ResponseBodySize

func ResponseBodySize(v int64) predicate.Traffic

ResponseBodySize applies equality check predicate on the "response_body_size" field. It's identical to ResponseBodySizeEQ.

func ResponseBodySizeEQ

func ResponseBodySizeEQ(v int64) predicate.Traffic

ResponseBodySizeEQ applies the EQ predicate on the "response_body_size" field.

func ResponseBodySizeGT

func ResponseBodySizeGT(v int64) predicate.Traffic

ResponseBodySizeGT applies the GT predicate on the "response_body_size" field.

func ResponseBodySizeGTE

func ResponseBodySizeGTE(v int64) predicate.Traffic

ResponseBodySizeGTE applies the GTE predicate on the "response_body_size" field.

func ResponseBodySizeIn

func ResponseBodySizeIn(vs ...int64) predicate.Traffic

ResponseBodySizeIn applies the In predicate on the "response_body_size" field.

func ResponseBodySizeLT

func ResponseBodySizeLT(v int64) predicate.Traffic

ResponseBodySizeLT applies the LT predicate on the "response_body_size" field.

func ResponseBodySizeLTE

func ResponseBodySizeLTE(v int64) predicate.Traffic

ResponseBodySizeLTE applies the LTE predicate on the "response_body_size" field.

func ResponseBodySizeNEQ

func ResponseBodySizeNEQ(v int64) predicate.Traffic

ResponseBodySizeNEQ applies the NEQ predicate on the "response_body_size" field.

func ResponseBodySizeNotIn

func ResponseBodySizeNotIn(vs ...int64) predicate.Traffic

ResponseBodySizeNotIn applies the NotIn predicate on the "response_body_size" field.

func ResponseContentType

func ResponseContentType(v string) predicate.Traffic

ResponseContentType applies equality check predicate on the "response_content_type" field. It's identical to ResponseContentTypeEQ.

func ResponseContentTypeContains

func ResponseContentTypeContains(v string) predicate.Traffic

ResponseContentTypeContains applies the Contains predicate on the "response_content_type" field.

func ResponseContentTypeContainsFold

func ResponseContentTypeContainsFold(v string) predicate.Traffic

ResponseContentTypeContainsFold applies the ContainsFold predicate on the "response_content_type" field.

func ResponseContentTypeEQ

func ResponseContentTypeEQ(v string) predicate.Traffic

ResponseContentTypeEQ applies the EQ predicate on the "response_content_type" field.

func ResponseContentTypeEqualFold

func ResponseContentTypeEqualFold(v string) predicate.Traffic

ResponseContentTypeEqualFold applies the EqualFold predicate on the "response_content_type" field.

func ResponseContentTypeGT

func ResponseContentTypeGT(v string) predicate.Traffic

ResponseContentTypeGT applies the GT predicate on the "response_content_type" field.

func ResponseContentTypeGTE

func ResponseContentTypeGTE(v string) predicate.Traffic

ResponseContentTypeGTE applies the GTE predicate on the "response_content_type" field.

func ResponseContentTypeHasPrefix

func ResponseContentTypeHasPrefix(v string) predicate.Traffic

ResponseContentTypeHasPrefix applies the HasPrefix predicate on the "response_content_type" field.

func ResponseContentTypeHasSuffix

func ResponseContentTypeHasSuffix(v string) predicate.Traffic

ResponseContentTypeHasSuffix applies the HasSuffix predicate on the "response_content_type" field.

func ResponseContentTypeIn

func ResponseContentTypeIn(vs ...string) predicate.Traffic

ResponseContentTypeIn applies the In predicate on the "response_content_type" field.

func ResponseContentTypeIsNil

func ResponseContentTypeIsNil() predicate.Traffic

ResponseContentTypeIsNil applies the IsNil predicate on the "response_content_type" field.

func ResponseContentTypeLT

func ResponseContentTypeLT(v string) predicate.Traffic

ResponseContentTypeLT applies the LT predicate on the "response_content_type" field.

func ResponseContentTypeLTE

func ResponseContentTypeLTE(v string) predicate.Traffic

ResponseContentTypeLTE applies the LTE predicate on the "response_content_type" field.

func ResponseContentTypeNEQ

func ResponseContentTypeNEQ(v string) predicate.Traffic

ResponseContentTypeNEQ applies the NEQ predicate on the "response_content_type" field.

func ResponseContentTypeNotIn

func ResponseContentTypeNotIn(vs ...string) predicate.Traffic

ResponseContentTypeNotIn applies the NotIn predicate on the "response_content_type" field.

func ResponseContentTypeNotNil

func ResponseContentTypeNotNil() predicate.Traffic

ResponseContentTypeNotNil applies the NotNil predicate on the "response_content_type" field.

func ResponseHeadersIsNil

func ResponseHeadersIsNil() predicate.Traffic

ResponseHeadersIsNil applies the IsNil predicate on the "response_headers" field.

func ResponseHeadersNotNil

func ResponseHeadersNotNil() predicate.Traffic

ResponseHeadersNotNil applies the NotNil predicate on the "response_headers" field.

func ResponseIsBinary

func ResponseIsBinary(v bool) predicate.Traffic

ResponseIsBinary applies equality check predicate on the "response_is_binary" field. It's identical to ResponseIsBinaryEQ.

func ResponseIsBinaryEQ

func ResponseIsBinaryEQ(v bool) predicate.Traffic

ResponseIsBinaryEQ applies the EQ predicate on the "response_is_binary" field.

func ResponseIsBinaryNEQ

func ResponseIsBinaryNEQ(v bool) predicate.Traffic

ResponseIsBinaryNEQ applies the NEQ predicate on the "response_is_binary" field.

func Scheme

func Scheme(v string) predicate.Traffic

Scheme applies equality check predicate on the "scheme" field. It's identical to SchemeEQ.

func SchemeContains

func SchemeContains(v string) predicate.Traffic

SchemeContains applies the Contains predicate on the "scheme" field.

func SchemeContainsFold

func SchemeContainsFold(v string) predicate.Traffic

SchemeContainsFold applies the ContainsFold predicate on the "scheme" field.

func SchemeEQ

func SchemeEQ(v string) predicate.Traffic

SchemeEQ applies the EQ predicate on the "scheme" field.

func SchemeEqualFold

func SchemeEqualFold(v string) predicate.Traffic

SchemeEqualFold applies the EqualFold predicate on the "scheme" field.

func SchemeGT

func SchemeGT(v string) predicate.Traffic

SchemeGT applies the GT predicate on the "scheme" field.

func SchemeGTE

func SchemeGTE(v string) predicate.Traffic

SchemeGTE applies the GTE predicate on the "scheme" field.

func SchemeHasPrefix

func SchemeHasPrefix(v string) predicate.Traffic

SchemeHasPrefix applies the HasPrefix predicate on the "scheme" field.

func SchemeHasSuffix

func SchemeHasSuffix(v string) predicate.Traffic

SchemeHasSuffix applies the HasSuffix predicate on the "scheme" field.

func SchemeIn

func SchemeIn(vs ...string) predicate.Traffic

SchemeIn applies the In predicate on the "scheme" field.

func SchemeLT

func SchemeLT(v string) predicate.Traffic

SchemeLT applies the LT predicate on the "scheme" field.

func SchemeLTE

func SchemeLTE(v string) predicate.Traffic

SchemeLTE applies the LTE predicate on the "scheme" field.

func SchemeNEQ

func SchemeNEQ(v string) predicate.Traffic

SchemeNEQ applies the NEQ predicate on the "scheme" field.

func SchemeNotIn

func SchemeNotIn(vs ...string) predicate.Traffic

SchemeNotIn applies the NotIn predicate on the "scheme" field.

func StartedAt

func StartedAt(v time.Time) predicate.Traffic

StartedAt applies equality check predicate on the "started_at" field. It's identical to StartedAtEQ.

func StartedAtEQ

func StartedAtEQ(v time.Time) predicate.Traffic

StartedAtEQ applies the EQ predicate on the "started_at" field.

func StartedAtGT

func StartedAtGT(v time.Time) predicate.Traffic

StartedAtGT applies the GT predicate on the "started_at" field.

func StartedAtGTE

func StartedAtGTE(v time.Time) predicate.Traffic

StartedAtGTE applies the GTE predicate on the "started_at" field.

func StartedAtIn

func StartedAtIn(vs ...time.Time) predicate.Traffic

StartedAtIn applies the In predicate on the "started_at" field.

func StartedAtLT

func StartedAtLT(v time.Time) predicate.Traffic

StartedAtLT applies the LT predicate on the "started_at" field.

func StartedAtLTE

func StartedAtLTE(v time.Time) predicate.Traffic

StartedAtLTE applies the LTE predicate on the "started_at" field.

func StartedAtNEQ

func StartedAtNEQ(v time.Time) predicate.Traffic

StartedAtNEQ applies the NEQ predicate on the "started_at" field.

func StartedAtNotIn

func StartedAtNotIn(vs ...time.Time) predicate.Traffic

StartedAtNotIn applies the NotIn predicate on the "started_at" field.

func StatusCode

func StatusCode(v int) predicate.Traffic

StatusCode applies equality check predicate on the "status_code" field. It's identical to StatusCodeEQ.

func StatusCodeEQ

func StatusCodeEQ(v int) predicate.Traffic

StatusCodeEQ applies the EQ predicate on the "status_code" field.

func StatusCodeGT

func StatusCodeGT(v int) predicate.Traffic

StatusCodeGT applies the GT predicate on the "status_code" field.

func StatusCodeGTE

func StatusCodeGTE(v int) predicate.Traffic

StatusCodeGTE applies the GTE predicate on the "status_code" field.

func StatusCodeIn

func StatusCodeIn(vs ...int) predicate.Traffic

StatusCodeIn applies the In predicate on the "status_code" field.

func StatusCodeLT

func StatusCodeLT(v int) predicate.Traffic

StatusCodeLT applies the LT predicate on the "status_code" field.

func StatusCodeLTE

func StatusCodeLTE(v int) predicate.Traffic

StatusCodeLTE applies the LTE predicate on the "status_code" field.

func StatusCodeNEQ

func StatusCodeNEQ(v int) predicate.Traffic

StatusCodeNEQ applies the NEQ predicate on the "status_code" field.

func StatusCodeNotIn

func StatusCodeNotIn(vs ...int) predicate.Traffic

StatusCodeNotIn applies the NotIn predicate on the "status_code" field.

func StatusText

func StatusText(v string) predicate.Traffic

StatusText applies equality check predicate on the "status_text" field. It's identical to StatusTextEQ.

func StatusTextContains

func StatusTextContains(v string) predicate.Traffic

StatusTextContains applies the Contains predicate on the "status_text" field.

func StatusTextContainsFold

func StatusTextContainsFold(v string) predicate.Traffic

StatusTextContainsFold applies the ContainsFold predicate on the "status_text" field.

func StatusTextEQ

func StatusTextEQ(v string) predicate.Traffic

StatusTextEQ applies the EQ predicate on the "status_text" field.

func StatusTextEqualFold

func StatusTextEqualFold(v string) predicate.Traffic

StatusTextEqualFold applies the EqualFold predicate on the "status_text" field.

func StatusTextGT

func StatusTextGT(v string) predicate.Traffic

StatusTextGT applies the GT predicate on the "status_text" field.

func StatusTextGTE

func StatusTextGTE(v string) predicate.Traffic

StatusTextGTE applies the GTE predicate on the "status_text" field.

func StatusTextHasPrefix

func StatusTextHasPrefix(v string) predicate.Traffic

StatusTextHasPrefix applies the HasPrefix predicate on the "status_text" field.

func StatusTextHasSuffix

func StatusTextHasSuffix(v string) predicate.Traffic

StatusTextHasSuffix applies the HasSuffix predicate on the "status_text" field.

func StatusTextIn

func StatusTextIn(vs ...string) predicate.Traffic

StatusTextIn applies the In predicate on the "status_text" field.

func StatusTextIsNil

func StatusTextIsNil() predicate.Traffic

StatusTextIsNil applies the IsNil predicate on the "status_text" field.

func StatusTextLT

func StatusTextLT(v string) predicate.Traffic

StatusTextLT applies the LT predicate on the "status_text" field.

func StatusTextLTE

func StatusTextLTE(v string) predicate.Traffic

StatusTextLTE applies the LTE predicate on the "status_text" field.

func StatusTextNEQ

func StatusTextNEQ(v string) predicate.Traffic

StatusTextNEQ applies the NEQ predicate on the "status_text" field.

func StatusTextNotIn

func StatusTextNotIn(vs ...string) predicate.Traffic

StatusTextNotIn applies the NotIn predicate on the "status_text" field.

func StatusTextNotNil

func StatusTextNotNil() predicate.Traffic

StatusTextNotNil applies the NotNil predicate on the "status_text" field.

func TagsIsNil

func TagsIsNil() predicate.Traffic

TagsIsNil applies the IsNil predicate on the "tags" field.

func TagsNotNil

func TagsNotNil() predicate.Traffic

TagsNotNil applies the NotNil predicate on the "tags" field.

func TtfbMs

func TtfbMs(v float64) predicate.Traffic

TtfbMs applies equality check predicate on the "ttfb_ms" field. It's identical to TtfbMsEQ.

func TtfbMsEQ

func TtfbMsEQ(v float64) predicate.Traffic

TtfbMsEQ applies the EQ predicate on the "ttfb_ms" field.

func TtfbMsGT

func TtfbMsGT(v float64) predicate.Traffic

TtfbMsGT applies the GT predicate on the "ttfb_ms" field.

func TtfbMsGTE

func TtfbMsGTE(v float64) predicate.Traffic

TtfbMsGTE applies the GTE predicate on the "ttfb_ms" field.

func TtfbMsIn

func TtfbMsIn(vs ...float64) predicate.Traffic

TtfbMsIn applies the In predicate on the "ttfb_ms" field.

func TtfbMsIsNil

func TtfbMsIsNil() predicate.Traffic

TtfbMsIsNil applies the IsNil predicate on the "ttfb_ms" field.

func TtfbMsLT

func TtfbMsLT(v float64) predicate.Traffic

TtfbMsLT applies the LT predicate on the "ttfb_ms" field.

func TtfbMsLTE

func TtfbMsLTE(v float64) predicate.Traffic

TtfbMsLTE applies the LTE predicate on the "ttfb_ms" field.

func TtfbMsNEQ

func TtfbMsNEQ(v float64) predicate.Traffic

TtfbMsNEQ applies the NEQ predicate on the "ttfb_ms" field.

func TtfbMsNotIn

func TtfbMsNotIn(vs ...float64) predicate.Traffic

TtfbMsNotIn applies the NotIn predicate on the "ttfb_ms" field.

func TtfbMsNotNil

func TtfbMsNotNil() predicate.Traffic

TtfbMsNotNil applies the NotNil predicate on the "ttfb_ms" field.

func URL

func URL(v string) predicate.Traffic

URL applies equality check predicate on the "url" field. It's identical to URLEQ.

func URLContains

func URLContains(v string) predicate.Traffic

URLContains applies the Contains predicate on the "url" field.

func URLContainsFold

func URLContainsFold(v string) predicate.Traffic

URLContainsFold applies the ContainsFold predicate on the "url" field.

func URLEQ

func URLEQ(v string) predicate.Traffic

URLEQ applies the EQ predicate on the "url" field.

func URLEqualFold

func URLEqualFold(v string) predicate.Traffic

URLEqualFold applies the EqualFold predicate on the "url" field.

func URLGT

func URLGT(v string) predicate.Traffic

URLGT applies the GT predicate on the "url" field.

func URLGTE

func URLGTE(v string) predicate.Traffic

URLGTE applies the GTE predicate on the "url" field.

func URLHasPrefix

func URLHasPrefix(v string) predicate.Traffic

URLHasPrefix applies the HasPrefix predicate on the "url" field.

func URLHasSuffix

func URLHasSuffix(v string) predicate.Traffic

URLHasSuffix applies the HasSuffix predicate on the "url" field.

func URLIn

func URLIn(vs ...string) predicate.Traffic

URLIn applies the In predicate on the "url" field.

func URLLT

func URLLT(v string) predicate.Traffic

URLLT applies the LT predicate on the "url" field.

func URLLTE

func URLLTE(v string) predicate.Traffic

URLLTE applies the LTE predicate on the "url" field.

func URLNEQ

func URLNEQ(v string) predicate.Traffic

URLNEQ applies the NEQ predicate on the "url" field.

func URLNotIn

func URLNotIn(vs ...string) predicate.Traffic

URLNotIn applies the NotIn predicate on the "url" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Traffic queries.

func ByClientIP

func ByClientIP(opts ...sql.OrderTermOption) OrderOption

ByClientIP orders the results by the client_ip field.

func ByContentType

func ByContentType(opts ...sql.OrderTermOption) OrderOption

ByContentType orders the results by the content_type field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDurationMs

func ByDurationMs(opts ...sql.OrderTermOption) OrderOption

ByDurationMs orders the results by the duration_ms field.

func ByError

func ByError(opts ...sql.OrderTermOption) OrderOption

ByError orders the results by the error field.

func ByHost

func ByHost(opts ...sql.OrderTermOption) OrderOption

ByHost orders the results by the host field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByMethod

func ByMethod(opts ...sql.OrderTermOption) OrderOption

ByMethod orders the results by the method field.

func ByPath

func ByPath(opts ...sql.OrderTermOption) OrderOption

ByPath orders the results by the path field.

func ByProxyField

func ByProxyField(field string, opts ...sql.OrderTermOption) OrderOption

ByProxyField orders the results by proxy field.

func ByQuery

func ByQuery(opts ...sql.OrderTermOption) OrderOption

ByQuery orders the results by the query field.

func ByRequestBodySize

func ByRequestBodySize(opts ...sql.OrderTermOption) OrderOption

ByRequestBodySize orders the results by the request_body_size field.

func ByRequestIsBinary

func ByRequestIsBinary(opts ...sql.OrderTermOption) OrderOption

ByRequestIsBinary orders the results by the request_is_binary field.

func ByResponseBodySize

func ByResponseBodySize(opts ...sql.OrderTermOption) OrderOption

ByResponseBodySize orders the results by the response_body_size field.

func ByResponseContentType

func ByResponseContentType(opts ...sql.OrderTermOption) OrderOption

ByResponseContentType orders the results by the response_content_type field.

func ByResponseIsBinary

func ByResponseIsBinary(opts ...sql.OrderTermOption) OrderOption

ByResponseIsBinary orders the results by the response_is_binary field.

func ByScheme

func ByScheme(opts ...sql.OrderTermOption) OrderOption

ByScheme orders the results by the scheme field.

func ByStartedAt

func ByStartedAt(opts ...sql.OrderTermOption) OrderOption

ByStartedAt orders the results by the started_at field.

func ByStatusCode

func ByStatusCode(opts ...sql.OrderTermOption) OrderOption

ByStatusCode orders the results by the status_code field.

func ByStatusText

func ByStatusText(opts ...sql.OrderTermOption) OrderOption

ByStatusText orders the results by the status_text field.

func ByTtfbMs

func ByTtfbMs(opts ...sql.OrderTermOption) OrderOption

ByTtfbMs orders the results by the ttfb_ms field.

func ByURL

func ByURL(opts ...sql.OrderTermOption) OrderOption

ByURL orders the results by the url field.

Jump to

Keyboard shortcuts

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