Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Message) predicate.Message
- func Data(v []byte) predicate.Message
- func DataEQ(v []byte) predicate.Message
- func DataGT(v []byte) predicate.Message
- func DataGTE(v []byte) predicate.Message
- func DataIn(vs ...[]byte) predicate.Message
- func DataLT(v []byte) predicate.Message
- func DataLTE(v []byte) predicate.Message
- func DataNEQ(v []byte) predicate.Message
- func DataNotIn(vs ...[]byte) predicate.Message
- func DestinationAddress(v string) predicate.Message
- func DestinationAddressContains(v string) predicate.Message
- func DestinationAddressContainsFold(v string) predicate.Message
- func DestinationAddressEQ(v string) predicate.Message
- func DestinationAddressEqualFold(v string) predicate.Message
- func DestinationAddressGT(v string) predicate.Message
- func DestinationAddressGTE(v string) predicate.Message
- func DestinationAddressHasPrefix(v string) predicate.Message
- func DestinationAddressHasSuffix(v string) predicate.Message
- func DestinationAddressIn(vs ...string) predicate.Message
- func DestinationAddressLT(v string) predicate.Message
- func DestinationAddressLTE(v string) predicate.Message
- func DestinationAddressNEQ(v string) predicate.Message
- func DestinationAddressNotIn(vs ...string) predicate.Message
- func DestinationPort(v int) predicate.Message
- func DestinationPortEQ(v int) predicate.Message
- func DestinationPortGT(v int) predicate.Message
- func DestinationPortGTE(v int) predicate.Message
- func DestinationPortIn(vs ...int) predicate.Message
- func DestinationPortLT(v int) predicate.Message
- func DestinationPortLTE(v int) predicate.Message
- func DestinationPortNEQ(v int) predicate.Message
- func DestinationPortNotIn(vs ...int) predicate.Message
- func ID(id int) predicate.Message
- func IDEQ(id int) predicate.Message
- func IDGT(id int) predicate.Message
- func IDGTE(id int) predicate.Message
- func IDIn(ids ...int) predicate.Message
- func IDLT(id int) predicate.Message
- func IDLTE(id int) predicate.Message
- func IDNEQ(id int) predicate.Message
- func IDNotIn(ids ...int) predicate.Message
- func Not(p predicate.Message) predicate.Message
- func Opcode(v int) predicate.Message
- func OpcodeEQ(v int) predicate.Message
- func OpcodeGT(v int) predicate.Message
- func OpcodeGTE(v int) predicate.Message
- func OpcodeIn(vs ...int) predicate.Message
- func OpcodeIsNil() predicate.Message
- func OpcodeLT(v int) predicate.Message
- func OpcodeLTE(v int) predicate.Message
- func OpcodeNEQ(v int) predicate.Message
- func OpcodeNotIn(vs ...int) predicate.Message
- func OpcodeNotNil() predicate.Message
- func Or(predicates ...predicate.Message) predicate.Message
- func Segment(v int) predicate.Message
- func SegmentEQ(v int) predicate.Message
- func SegmentGT(v int) predicate.Message
- func SegmentGTE(v int) predicate.Message
- func SegmentIn(vs ...int) predicate.Message
- func SegmentLT(v int) predicate.Message
- func SegmentLTE(v int) predicate.Message
- func SegmentNEQ(v int) predicate.Message
- func SegmentNotIn(vs ...int) predicate.Message
- func SourceAddress(v string) predicate.Message
- func SourceAddressContains(v string) predicate.Message
- func SourceAddressContainsFold(v string) predicate.Message
- func SourceAddressEQ(v string) predicate.Message
- func SourceAddressEqualFold(v string) predicate.Message
- func SourceAddressGT(v string) predicate.Message
- func SourceAddressGTE(v string) predicate.Message
- func SourceAddressHasPrefix(v string) predicate.Message
- func SourceAddressHasSuffix(v string) predicate.Message
- func SourceAddressIn(vs ...string) predicate.Message
- func SourceAddressLT(v string) predicate.Message
- func SourceAddressLTE(v string) predicate.Message
- func SourceAddressNEQ(v string) predicate.Message
- func SourceAddressNotIn(vs ...string) predicate.Message
- func SourcePort(v int) predicate.Message
- func SourcePortEQ(v int) predicate.Message
- func SourcePortGT(v int) predicate.Message
- func SourcePortGTE(v int) predicate.Message
- func SourcePortIn(vs ...int) predicate.Message
- func SourcePortLT(v int) predicate.Message
- func SourcePortLTE(v int) predicate.Message
- func SourcePortNEQ(v int) predicate.Message
- func SourcePortNotIn(vs ...int) predicate.Message
- func Timestamp(v time.Time) predicate.Message
- func TimestampEQ(v time.Time) predicate.Message
- func TimestampGT(v time.Time) predicate.Message
- func TimestampGTE(v time.Time) predicate.Message
- func TimestampIn(vs ...time.Time) predicate.Message
- func TimestampLT(v time.Time) predicate.Message
- func TimestampLTE(v time.Time) predicate.Message
- func TimestampNEQ(v time.Time) predicate.Message
- func TimestampNotIn(vs ...time.Time) predicate.Message
- func ValidColumn(column string) bool
- func Version(v int) predicate.Message
- func VersionEQ(v int) predicate.Message
- func VersionGT(v int) predicate.Message
- func VersionGTE(v int) predicate.Message
- func VersionIn(vs ...int) predicate.Message
- func VersionLT(v int) predicate.Message
- func VersionLTE(v int) predicate.Message
- func VersionNEQ(v int) predicate.Message
- func VersionNotIn(vs ...int) predicate.Message
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldTimestamp, FieldVersion, FieldSegment, FieldOpcode, FieldSourceAddress, FieldSourcePort, FieldDestinationAddress, FieldDestinationPort, FieldData, }
Columns holds all SQL columns for message fields.
var ( // DefaultSegment holds the default value on creation for the "segment" field. DefaultSegment int )
Functions ¶
func DestinationAddress ¶
DestinationAddress applies equality check predicate on the "destination_address" field. It's identical to DestinationAddressEQ.
func DestinationAddressContains ¶
DestinationAddressContains applies the Contains predicate on the "destination_address" field.
func DestinationAddressContainsFold ¶
DestinationAddressContainsFold applies the ContainsFold predicate on the "destination_address" field.
func DestinationAddressEQ ¶
DestinationAddressEQ applies the EQ predicate on the "destination_address" field.
func DestinationAddressEqualFold ¶
DestinationAddressEqualFold applies the EqualFold predicate on the "destination_address" field.
func DestinationAddressGT ¶
DestinationAddressGT applies the GT predicate on the "destination_address" field.
func DestinationAddressGTE ¶
DestinationAddressGTE applies the GTE predicate on the "destination_address" field.
func DestinationAddressHasPrefix ¶
DestinationAddressHasPrefix applies the HasPrefix predicate on the "destination_address" field.
func DestinationAddressHasSuffix ¶
DestinationAddressHasSuffix applies the HasSuffix predicate on the "destination_address" field.
func DestinationAddressIn ¶
DestinationAddressIn applies the In predicate on the "destination_address" field.
func DestinationAddressLT ¶
DestinationAddressLT applies the LT predicate on the "destination_address" field.
func DestinationAddressLTE ¶
DestinationAddressLTE applies the LTE predicate on the "destination_address" field.
func DestinationAddressNEQ ¶
DestinationAddressNEQ applies the NEQ predicate on the "destination_address" field.
func DestinationAddressNotIn ¶
DestinationAddressNotIn applies the NotIn predicate on the "destination_address" field.
func DestinationPort ¶
DestinationPort applies equality check predicate on the "destination_port" field. It's identical to DestinationPortEQ.
func DestinationPortEQ ¶
DestinationPortEQ applies the EQ predicate on the "destination_port" field.
func DestinationPortGT ¶
DestinationPortGT applies the GT predicate on the "destination_port" field.
func DestinationPortGTE ¶
DestinationPortGTE applies the GTE predicate on the "destination_port" field.
func DestinationPortIn ¶
DestinationPortIn applies the In predicate on the "destination_port" field.
func DestinationPortLT ¶
DestinationPortLT applies the LT predicate on the "destination_port" field.
func DestinationPortLTE ¶
DestinationPortLTE applies the LTE predicate on the "destination_port" field.
func DestinationPortNEQ ¶
DestinationPortNEQ applies the NEQ predicate on the "destination_port" field.
func DestinationPortNotIn ¶
DestinationPortNotIn applies the NotIn predicate on the "destination_port" field.
func Opcode ¶ added in v0.1.1
Opcode applies equality check predicate on the "opcode" field. It's identical to OpcodeEQ.
func OpcodeIsNil ¶ added in v0.1.1
OpcodeIsNil applies the IsNil predicate on the "opcode" field.
func OpcodeNotIn ¶ added in v0.1.1
OpcodeNotIn applies the NotIn predicate on the "opcode" field.
func OpcodeNotNil ¶ added in v0.1.1
OpcodeNotNil applies the NotNil predicate on the "opcode" field.
func Segment ¶ added in v0.1.1
Segment applies equality check predicate on the "segment" field. It's identical to SegmentEQ.
func SegmentGTE ¶ added in v0.1.1
SegmentGTE applies the GTE predicate on the "segment" field.
func SegmentLTE ¶ added in v0.1.1
SegmentLTE applies the LTE predicate on the "segment" field.
func SegmentNEQ ¶ added in v0.1.1
SegmentNEQ applies the NEQ predicate on the "segment" field.
func SegmentNotIn ¶ added in v0.1.1
SegmentNotIn applies the NotIn predicate on the "segment" field.
func SourceAddress ¶
SourceAddress applies equality check predicate on the "source_address" field. It's identical to SourceAddressEQ.
func SourceAddressContains ¶
SourceAddressContains applies the Contains predicate on the "source_address" field.
func SourceAddressContainsFold ¶
SourceAddressContainsFold applies the ContainsFold predicate on the "source_address" field.
func SourceAddressEQ ¶
SourceAddressEQ applies the EQ predicate on the "source_address" field.
func SourceAddressEqualFold ¶
SourceAddressEqualFold applies the EqualFold predicate on the "source_address" field.
func SourceAddressGT ¶
SourceAddressGT applies the GT predicate on the "source_address" field.
func SourceAddressGTE ¶
SourceAddressGTE applies the GTE predicate on the "source_address" field.
func SourceAddressHasPrefix ¶
SourceAddressHasPrefix applies the HasPrefix predicate on the "source_address" field.
func SourceAddressHasSuffix ¶
SourceAddressHasSuffix applies the HasSuffix predicate on the "source_address" field.
func SourceAddressIn ¶
SourceAddressIn applies the In predicate on the "source_address" field.
func SourceAddressLT ¶
SourceAddressLT applies the LT predicate on the "source_address" field.
func SourceAddressLTE ¶
SourceAddressLTE applies the LTE predicate on the "source_address" field.
func SourceAddressNEQ ¶
SourceAddressNEQ applies the NEQ predicate on the "source_address" field.
func SourceAddressNotIn ¶
SourceAddressNotIn applies the NotIn predicate on the "source_address" field.
func SourcePort ¶
SourcePort applies equality check predicate on the "source_port" field. It's identical to SourcePortEQ.
func SourcePortEQ ¶
SourcePortEQ applies the EQ predicate on the "source_port" field.
func SourcePortGT ¶
SourcePortGT applies the GT predicate on the "source_port" field.
func SourcePortGTE ¶
SourcePortGTE applies the GTE predicate on the "source_port" field.
func SourcePortIn ¶
SourcePortIn applies the In predicate on the "source_port" field.
func SourcePortLT ¶
SourcePortLT applies the LT predicate on the "source_port" field.
func SourcePortLTE ¶
SourcePortLTE applies the LTE predicate on the "source_port" field.
func SourcePortNEQ ¶
SourcePortNEQ applies the NEQ predicate on the "source_port" field.
func SourcePortNotIn ¶
SourcePortNotIn applies the NotIn predicate on the "source_port" field.
func Timestamp ¶
Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.
func TimestampEQ ¶
TimestampEQ applies the EQ predicate on the "timestamp" field.
func TimestampGT ¶
TimestampGT applies the GT predicate on the "timestamp" field.
func TimestampGTE ¶
TimestampGTE applies the GTE predicate on the "timestamp" field.
func TimestampIn ¶
TimestampIn applies the In predicate on the "timestamp" field.
func TimestampLT ¶
TimestampLT applies the LT predicate on the "timestamp" field.
func TimestampLTE ¶
TimestampLTE applies the LTE predicate on the "timestamp" field.
func TimestampNEQ ¶
TimestampNEQ applies the NEQ predicate on the "timestamp" field.
func TimestampNotIn ¶
TimestampNotIn applies the NotIn predicate on the "timestamp" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
This section is empty.