message

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the message type in the database.
	Label = "message"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTimestamp holds the string denoting the timestamp field in the database.
	FieldTimestamp = "timestamp"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldSegment holds the string denoting the segment field in the database.
	FieldSegment = "segment"
	// FieldOpcode holds the string denoting the opcode field in the database.
	FieldOpcode = "opcode"
	// FieldSourceAddress holds the string denoting the source_address field in the database.
	FieldSourceAddress = "source_address"
	// FieldSourcePort holds the string denoting the source_port field in the database.
	FieldSourcePort = "source_port"
	// FieldDestinationAddress holds the string denoting the destination_address field in the database.
	FieldDestinationAddress = "destination_address"
	// FieldDestinationPort holds the string denoting the destination_port field in the database.
	FieldDestinationPort = "destination_port"
	// FieldData holds the string denoting the data field in the database.
	FieldData = "data"
	// Table holds the table name of the message in the database.
	Table = "messages"
)

Variables

Columns holds all SQL columns for message fields.

View Source
var (
	// DefaultSegment holds the default value on creation for the "segment" field.
	DefaultSegment int
)

Functions

func And

func And(predicates ...predicate.Message) predicate.Message

And groups predicates with the AND operator between them.

func Data

func Data(v []byte) predicate.Message

Data applies equality check predicate on the "data" field. It's identical to DataEQ.

func DataEQ

func DataEQ(v []byte) predicate.Message

DataEQ applies the EQ predicate on the "data" field.

func DataGT

func DataGT(v []byte) predicate.Message

DataGT applies the GT predicate on the "data" field.

func DataGTE

func DataGTE(v []byte) predicate.Message

DataGTE applies the GTE predicate on the "data" field.

func DataIn

func DataIn(vs ...[]byte) predicate.Message

DataIn applies the In predicate on the "data" field.

func DataLT

func DataLT(v []byte) predicate.Message

DataLT applies the LT predicate on the "data" field.

func DataLTE

func DataLTE(v []byte) predicate.Message

DataLTE applies the LTE predicate on the "data" field.

func DataNEQ

func DataNEQ(v []byte) predicate.Message

DataNEQ applies the NEQ predicate on the "data" field.

func DataNotIn

func DataNotIn(vs ...[]byte) predicate.Message

DataNotIn applies the NotIn predicate on the "data" field.

func DestinationAddress

func DestinationAddress(v string) predicate.Message

DestinationAddress applies equality check predicate on the "destination_address" field. It's identical to DestinationAddressEQ.

func DestinationAddressContains

func DestinationAddressContains(v string) predicate.Message

DestinationAddressContains applies the Contains predicate on the "destination_address" field.

func DestinationAddressContainsFold

func DestinationAddressContainsFold(v string) predicate.Message

DestinationAddressContainsFold applies the ContainsFold predicate on the "destination_address" field.

func DestinationAddressEQ

func DestinationAddressEQ(v string) predicate.Message

DestinationAddressEQ applies the EQ predicate on the "destination_address" field.

func DestinationAddressEqualFold

func DestinationAddressEqualFold(v string) predicate.Message

DestinationAddressEqualFold applies the EqualFold predicate on the "destination_address" field.

func DestinationAddressGT

func DestinationAddressGT(v string) predicate.Message

DestinationAddressGT applies the GT predicate on the "destination_address" field.

func DestinationAddressGTE

func DestinationAddressGTE(v string) predicate.Message

DestinationAddressGTE applies the GTE predicate on the "destination_address" field.

func DestinationAddressHasPrefix

func DestinationAddressHasPrefix(v string) predicate.Message

DestinationAddressHasPrefix applies the HasPrefix predicate on the "destination_address" field.

func DestinationAddressHasSuffix

func DestinationAddressHasSuffix(v string) predicate.Message

DestinationAddressHasSuffix applies the HasSuffix predicate on the "destination_address" field.

func DestinationAddressIn

func DestinationAddressIn(vs ...string) predicate.Message

DestinationAddressIn applies the In predicate on the "destination_address" field.

func DestinationAddressLT

func DestinationAddressLT(v string) predicate.Message

DestinationAddressLT applies the LT predicate on the "destination_address" field.

func DestinationAddressLTE

func DestinationAddressLTE(v string) predicate.Message

DestinationAddressLTE applies the LTE predicate on the "destination_address" field.

func DestinationAddressNEQ

func DestinationAddressNEQ(v string) predicate.Message

DestinationAddressNEQ applies the NEQ predicate on the "destination_address" field.

func DestinationAddressNotIn

func DestinationAddressNotIn(vs ...string) predicate.Message

DestinationAddressNotIn applies the NotIn predicate on the "destination_address" field.

func DestinationPort

func DestinationPort(v int) predicate.Message

DestinationPort applies equality check predicate on the "destination_port" field. It's identical to DestinationPortEQ.

func DestinationPortEQ

func DestinationPortEQ(v int) predicate.Message

DestinationPortEQ applies the EQ predicate on the "destination_port" field.

func DestinationPortGT

func DestinationPortGT(v int) predicate.Message

DestinationPortGT applies the GT predicate on the "destination_port" field.

func DestinationPortGTE

func DestinationPortGTE(v int) predicate.Message

DestinationPortGTE applies the GTE predicate on the "destination_port" field.

func DestinationPortIn

func DestinationPortIn(vs ...int) predicate.Message

DestinationPortIn applies the In predicate on the "destination_port" field.

func DestinationPortLT

func DestinationPortLT(v int) predicate.Message

DestinationPortLT applies the LT predicate on the "destination_port" field.

func DestinationPortLTE

func DestinationPortLTE(v int) predicate.Message

DestinationPortLTE applies the LTE predicate on the "destination_port" field.

func DestinationPortNEQ

func DestinationPortNEQ(v int) predicate.Message

DestinationPortNEQ applies the NEQ predicate on the "destination_port" field.

func DestinationPortNotIn

func DestinationPortNotIn(vs ...int) predicate.Message

DestinationPortNotIn applies the NotIn predicate on the "destination_port" field.

func ID

func ID(id int) predicate.Message

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Message

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Message

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Message

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Message

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Message

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Message

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Opcode added in v0.1.1

func Opcode(v int) predicate.Message

Opcode applies equality check predicate on the "opcode" field. It's identical to OpcodeEQ.

func OpcodeEQ added in v0.1.1

func OpcodeEQ(v int) predicate.Message

OpcodeEQ applies the EQ predicate on the "opcode" field.

func OpcodeGT added in v0.1.1

func OpcodeGT(v int) predicate.Message

OpcodeGT applies the GT predicate on the "opcode" field.

func OpcodeGTE added in v0.1.1

func OpcodeGTE(v int) predicate.Message

OpcodeGTE applies the GTE predicate on the "opcode" field.

func OpcodeIn added in v0.1.1

func OpcodeIn(vs ...int) predicate.Message

OpcodeIn applies the In predicate on the "opcode" field.

func OpcodeIsNil added in v0.1.1

func OpcodeIsNil() predicate.Message

OpcodeIsNil applies the IsNil predicate on the "opcode" field.

func OpcodeLT added in v0.1.1

func OpcodeLT(v int) predicate.Message

OpcodeLT applies the LT predicate on the "opcode" field.

func OpcodeLTE added in v0.1.1

func OpcodeLTE(v int) predicate.Message

OpcodeLTE applies the LTE predicate on the "opcode" field.

func OpcodeNEQ added in v0.1.1

func OpcodeNEQ(v int) predicate.Message

OpcodeNEQ applies the NEQ predicate on the "opcode" field.

func OpcodeNotIn added in v0.1.1

func OpcodeNotIn(vs ...int) predicate.Message

OpcodeNotIn applies the NotIn predicate on the "opcode" field.

func OpcodeNotNil added in v0.1.1

func OpcodeNotNil() predicate.Message

OpcodeNotNil applies the NotNil predicate on the "opcode" field.

func Or

func Or(predicates ...predicate.Message) predicate.Message

Or groups predicates with the OR operator between them.

func Segment added in v0.1.1

func Segment(v int) predicate.Message

Segment applies equality check predicate on the "segment" field. It's identical to SegmentEQ.

func SegmentEQ added in v0.1.1

func SegmentEQ(v int) predicate.Message

SegmentEQ applies the EQ predicate on the "segment" field.

func SegmentGT added in v0.1.1

func SegmentGT(v int) predicate.Message

SegmentGT applies the GT predicate on the "segment" field.

func SegmentGTE added in v0.1.1

func SegmentGTE(v int) predicate.Message

SegmentGTE applies the GTE predicate on the "segment" field.

func SegmentIn added in v0.1.1

func SegmentIn(vs ...int) predicate.Message

SegmentIn applies the In predicate on the "segment" field.

func SegmentLT added in v0.1.1

func SegmentLT(v int) predicate.Message

SegmentLT applies the LT predicate on the "segment" field.

func SegmentLTE added in v0.1.1

func SegmentLTE(v int) predicate.Message

SegmentLTE applies the LTE predicate on the "segment" field.

func SegmentNEQ added in v0.1.1

func SegmentNEQ(v int) predicate.Message

SegmentNEQ applies the NEQ predicate on the "segment" field.

func SegmentNotIn added in v0.1.1

func SegmentNotIn(vs ...int) predicate.Message

SegmentNotIn applies the NotIn predicate on the "segment" field.

func SourceAddress

func SourceAddress(v string) predicate.Message

SourceAddress applies equality check predicate on the "source_address" field. It's identical to SourceAddressEQ.

func SourceAddressContains

func SourceAddressContains(v string) predicate.Message

SourceAddressContains applies the Contains predicate on the "source_address" field.

func SourceAddressContainsFold

func SourceAddressContainsFold(v string) predicate.Message

SourceAddressContainsFold applies the ContainsFold predicate on the "source_address" field.

func SourceAddressEQ

func SourceAddressEQ(v string) predicate.Message

SourceAddressEQ applies the EQ predicate on the "source_address" field.

func SourceAddressEqualFold

func SourceAddressEqualFold(v string) predicate.Message

SourceAddressEqualFold applies the EqualFold predicate on the "source_address" field.

func SourceAddressGT

func SourceAddressGT(v string) predicate.Message

SourceAddressGT applies the GT predicate on the "source_address" field.

func SourceAddressGTE

func SourceAddressGTE(v string) predicate.Message

SourceAddressGTE applies the GTE predicate on the "source_address" field.

func SourceAddressHasPrefix

func SourceAddressHasPrefix(v string) predicate.Message

SourceAddressHasPrefix applies the HasPrefix predicate on the "source_address" field.

func SourceAddressHasSuffix

func SourceAddressHasSuffix(v string) predicate.Message

SourceAddressHasSuffix applies the HasSuffix predicate on the "source_address" field.

func SourceAddressIn

func SourceAddressIn(vs ...string) predicate.Message

SourceAddressIn applies the In predicate on the "source_address" field.

func SourceAddressLT

func SourceAddressLT(v string) predicate.Message

SourceAddressLT applies the LT predicate on the "source_address" field.

func SourceAddressLTE

func SourceAddressLTE(v string) predicate.Message

SourceAddressLTE applies the LTE predicate on the "source_address" field.

func SourceAddressNEQ

func SourceAddressNEQ(v string) predicate.Message

SourceAddressNEQ applies the NEQ predicate on the "source_address" field.

func SourceAddressNotIn

func SourceAddressNotIn(vs ...string) predicate.Message

SourceAddressNotIn applies the NotIn predicate on the "source_address" field.

func SourcePort

func SourcePort(v int) predicate.Message

SourcePort applies equality check predicate on the "source_port" field. It's identical to SourcePortEQ.

func SourcePortEQ

func SourcePortEQ(v int) predicate.Message

SourcePortEQ applies the EQ predicate on the "source_port" field.

func SourcePortGT

func SourcePortGT(v int) predicate.Message

SourcePortGT applies the GT predicate on the "source_port" field.

func SourcePortGTE

func SourcePortGTE(v int) predicate.Message

SourcePortGTE applies the GTE predicate on the "source_port" field.

func SourcePortIn

func SourcePortIn(vs ...int) predicate.Message

SourcePortIn applies the In predicate on the "source_port" field.

func SourcePortLT

func SourcePortLT(v int) predicate.Message

SourcePortLT applies the LT predicate on the "source_port" field.

func SourcePortLTE

func SourcePortLTE(v int) predicate.Message

SourcePortLTE applies the LTE predicate on the "source_port" field.

func SourcePortNEQ

func SourcePortNEQ(v int) predicate.Message

SourcePortNEQ applies the NEQ predicate on the "source_port" field.

func SourcePortNotIn

func SourcePortNotIn(vs ...int) predicate.Message

SourcePortNotIn applies the NotIn predicate on the "source_port" field.

func Timestamp

func Timestamp(v time.Time) predicate.Message

Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.

func TimestampEQ

func TimestampEQ(v time.Time) predicate.Message

TimestampEQ applies the EQ predicate on the "timestamp" field.

func TimestampGT

func TimestampGT(v time.Time) predicate.Message

TimestampGT applies the GT predicate on the "timestamp" field.

func TimestampGTE

func TimestampGTE(v time.Time) predicate.Message

TimestampGTE applies the GTE predicate on the "timestamp" field.

func TimestampIn

func TimestampIn(vs ...time.Time) predicate.Message

TimestampIn applies the In predicate on the "timestamp" field.

func TimestampLT

func TimestampLT(v time.Time) predicate.Message

TimestampLT applies the LT predicate on the "timestamp" field.

func TimestampLTE

func TimestampLTE(v time.Time) predicate.Message

TimestampLTE applies the LTE predicate on the "timestamp" field.

func TimestampNEQ

func TimestampNEQ(v time.Time) predicate.Message

TimestampNEQ applies the NEQ predicate on the "timestamp" field.

func TimestampNotIn

func TimestampNotIn(vs ...time.Time) predicate.Message

TimestampNotIn applies the NotIn predicate on the "timestamp" field.

func ValidColumn

func ValidColumn(column string) bool

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

func Version

func Version(v int) predicate.Message

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionEQ

func VersionEQ(v int) predicate.Message

VersionEQ applies the EQ predicate on the "version" field.

func VersionGT

func VersionGT(v int) predicate.Message

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v int) predicate.Message

VersionGTE applies the GTE predicate on the "version" field.

func VersionIn

func VersionIn(vs ...int) predicate.Message

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v int) predicate.Message

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v int) predicate.Message

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v int) predicate.Message

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...int) predicate.Message

VersionNotIn applies the NotIn predicate on the "version" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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