Documentation
¶
Index ¶
- Constants
- Variables
- func AgentID(v string) predicate.Session
- func AgentIDContains(v string) predicate.Session
- func AgentIDContainsFold(v string) predicate.Session
- func AgentIDEQ(v string) predicate.Session
- func AgentIDEqualFold(v string) predicate.Session
- func AgentIDGT(v string) predicate.Session
- func AgentIDGTE(v string) predicate.Session
- func AgentIDHasPrefix(v string) predicate.Session
- func AgentIDHasSuffix(v string) predicate.Session
- func AgentIDIn(vs ...string) predicate.Session
- func AgentIDLT(v string) predicate.Session
- func AgentIDLTE(v string) predicate.Session
- func AgentIDNEQ(v string) predicate.Session
- func AgentIDNotIn(vs ...string) predicate.Session
- func And(predicates ...predicate.Session) predicate.Session
- func CreatedAt(v time.Time) predicate.Session
- func CreatedAtEQ(v time.Time) predicate.Session
- func CreatedAtGT(v time.Time) predicate.Session
- func CreatedAtGTE(v time.Time) predicate.Session
- func CreatedAtIn(vs ...time.Time) predicate.Session
- func CreatedAtLT(v time.Time) predicate.Session
- func CreatedAtLTE(v time.Time) predicate.Session
- func CreatedAtNEQ(v time.Time) predicate.Session
- func CreatedAtNotIn(vs ...time.Time) predicate.Session
- func Domain(v string) predicate.Session
- func DomainContains(v string) predicate.Session
- func DomainContainsFold(v string) predicate.Session
- func DomainEQ(v string) predicate.Session
- func DomainEqualFold(v string) predicate.Session
- func DomainGT(v string) predicate.Session
- func DomainGTE(v string) predicate.Session
- func DomainHasPrefix(v string) predicate.Session
- func DomainHasSuffix(v string) predicate.Session
- func DomainIn(vs ...string) predicate.Session
- func DomainLT(v string) predicate.Session
- func DomainLTE(v string) predicate.Session
- func DomainNEQ(v string) predicate.Session
- func DomainNotIn(vs ...string) predicate.Session
- func Extra(v string) predicate.Session
- func ExtraContains(v string) predicate.Session
- func ExtraContainsFold(v string) predicate.Session
- func ExtraEQ(v string) predicate.Session
- func ExtraEqualFold(v string) predicate.Session
- func ExtraGT(v string) predicate.Session
- func ExtraGTE(v string) predicate.Session
- func ExtraHasPrefix(v string) predicate.Session
- func ExtraHasSuffix(v string) predicate.Session
- func ExtraIn(vs ...string) predicate.Session
- func ExtraLT(v string) predicate.Session
- func ExtraLTE(v string) predicate.Session
- func ExtraNEQ(v string) predicate.Session
- func ExtraNotIn(vs ...string) predicate.Session
- func Hostname(v string) predicate.Session
- func HostnameContains(v string) predicate.Session
- func HostnameContainsFold(v string) predicate.Session
- func HostnameEQ(v string) predicate.Session
- func HostnameEqualFold(v string) predicate.Session
- func HostnameGT(v string) predicate.Session
- func HostnameGTE(v string) predicate.Session
- func HostnameHasPrefix(v string) predicate.Session
- func HostnameHasSuffix(v string) predicate.Session
- func HostnameIn(vs ...string) predicate.Session
- func HostnameLT(v string) predicate.Session
- func HostnameLTE(v string) predicate.Session
- func HostnameNEQ(v string) predicate.Session
- func HostnameNotIn(vs ...string) predicate.Session
- func ID(id string) predicate.Session
- func IDContainsFold(id string) predicate.Session
- func IDEQ(id string) predicate.Session
- func IDEqualFold(id string) predicate.Session
- func IDGT(id string) predicate.Session
- func IDGTE(id string) predicate.Session
- func IDIn(ids ...string) predicate.Session
- func IDLT(id string) predicate.Session
- func IDLTE(id string) predicate.Session
- func IDNEQ(id string) predicate.Session
- func IDNotIn(ids ...string) predicate.Session
- func IsPriv(v bool) predicate.Session
- func IsPrivEQ(v bool) predicate.Session
- func IsPrivNEQ(v bool) predicate.Session
- func Not(p predicate.Session) predicate.Session
- func Or(predicates ...predicate.Session) predicate.Session
- func OsMeta(v string) predicate.Session
- func OsMetaContains(v string) predicate.Session
- func OsMetaContainsFold(v string) predicate.Session
- func OsMetaEQ(v string) predicate.Session
- func OsMetaEqualFold(v string) predicate.Session
- func OsMetaGT(v string) predicate.Session
- func OsMetaGTE(v string) predicate.Session
- func OsMetaHasPrefix(v string) predicate.Session
- func OsMetaHasSuffix(v string) predicate.Session
- func OsMetaIn(vs ...string) predicate.Session
- func OsMetaLT(v string) predicate.Session
- func OsMetaLTE(v string) predicate.Session
- func OsMetaNEQ(v string) predicate.Session
- func OsMetaNotIn(vs ...string) predicate.Session
- func ProcName(v string) predicate.Session
- func ProcNameContains(v string) predicate.Session
- func ProcNameContainsFold(v string) predicate.Session
- func ProcNameEQ(v string) predicate.Session
- func ProcNameEqualFold(v string) predicate.Session
- func ProcNameGT(v string) predicate.Session
- func ProcNameGTE(v string) predicate.Session
- func ProcNameHasPrefix(v string) predicate.Session
- func ProcNameHasSuffix(v string) predicate.Session
- func ProcNameIn(vs ...string) predicate.Session
- func ProcNameLT(v string) predicate.Session
- func ProcNameLTE(v string) predicate.Session
- func ProcNameNEQ(v string) predicate.Session
- func ProcNameNotIn(vs ...string) predicate.Session
- func Username(v string) predicate.Session
- func UsernameContains(v string) predicate.Session
- func UsernameContainsFold(v string) predicate.Session
- func UsernameEQ(v string) predicate.Session
- func UsernameEqualFold(v string) predicate.Session
- func UsernameGT(v string) predicate.Session
- func UsernameGTE(v string) predicate.Session
- func UsernameHasPrefix(v string) predicate.Session
- func UsernameHasSuffix(v string) predicate.Session
- func UsernameIn(vs ...string) predicate.Session
- func UsernameLT(v string) predicate.Session
- func UsernameLTE(v string) predicate.Session
- func UsernameNEQ(v string) predicate.Session
- func UsernameNotIn(vs ...string) predicate.Session
- func ValidColumn(column string) bool
- type OrderOption
- func ByAgentID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDomain(opts ...sql.OrderTermOption) OrderOption
- func ByExtra(opts ...sql.OrderTermOption) OrderOption
- func ByHostname(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsPriv(opts ...sql.OrderTermOption) OrderOption
- func ByOsMeta(opts ...sql.OrderTermOption) OrderOption
- func ByProcName(opts ...sql.OrderTermOption) OrderOption
- func ByUsername(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the session type in the database. Label = "session" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldAgentID holds the string denoting the agent_id field in the database. FieldAgentID = "agent_id" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldHostname holds the string denoting the hostname field in the database. FieldHostname = "hostname" // FieldDomain holds the string denoting the domain field in the database. FieldDomain = "domain" // FieldIsPriv holds the string denoting the is_priv field in the database. FieldIsPriv = "is_priv" // FieldIps holds the string denoting the ips field in the database. FieldIps = "ips" // FieldOsMeta holds the string denoting the os_meta field in the database. FieldOsMeta = "os_meta" // FieldProcName holds the string denoting the proc_name field in the database. FieldProcName = "proc_name" // FieldExtra holds the string denoting the extra field in the database. FieldExtra = "extra" // Table holds the table name of the session in the database. Table = "sessions" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // AgentIDValidator is a validator for the "agent_id" field. It is called by the builders before save. AgentIDValidator func(string) error // UsernameValidator is a validator for the "username" field. It is called by the builders before save. UsernameValidator func(string) error // HostnameValidator is a validator for the "hostname" field. It is called by the builders before save. HostnameValidator func(string) error // DefaultDomain holds the default value on creation for the "domain" field. DefaultDomain string // DefaultIsPriv holds the default value on creation for the "is_priv" field. DefaultIsPriv bool // DefaultOsMeta holds the default value on creation for the "os_meta" field. DefaultOsMeta string // DefaultProcName holds the default value on creation for the "proc_name" field. DefaultProcName string // DefaultExtra holds the default value on creation for the "extra" field. DefaultExtra string // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
var Columns = []string{ FieldID, FieldCreatedAt, FieldAgentID, FieldUsername, FieldHostname, FieldDomain, FieldIsPriv, FieldIps, FieldOsMeta, FieldProcName, FieldExtra, }
Columns holds all SQL columns for session fields.
Functions ¶
func AgentID ¶
AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
func AgentIDContains ¶
AgentIDContains applies the Contains predicate on the "agent_id" field.
func AgentIDContainsFold ¶
AgentIDContainsFold applies the ContainsFold predicate on the "agent_id" field.
func AgentIDEqualFold ¶
AgentIDEqualFold applies the EqualFold predicate on the "agent_id" field.
func AgentIDGTE ¶
AgentIDGTE applies the GTE predicate on the "agent_id" field.
func AgentIDHasPrefix ¶
AgentIDHasPrefix applies the HasPrefix predicate on the "agent_id" field.
func AgentIDHasSuffix ¶
AgentIDHasSuffix applies the HasSuffix predicate on the "agent_id" field.
func AgentIDLTE ¶
AgentIDLTE applies the LTE predicate on the "agent_id" field.
func AgentIDNEQ ¶
AgentIDNEQ applies the NEQ predicate on the "agent_id" field.
func AgentIDNotIn ¶
AgentIDNotIn applies the NotIn predicate on the "agent_id" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Domain ¶
Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.
func DomainContains ¶
DomainContains applies the Contains predicate on the "domain" field.
func DomainContainsFold ¶
DomainContainsFold applies the ContainsFold predicate on the "domain" field.
func DomainEqualFold ¶
DomainEqualFold applies the EqualFold predicate on the "domain" field.
func DomainHasPrefix ¶
DomainHasPrefix applies the HasPrefix predicate on the "domain" field.
func DomainHasSuffix ¶
DomainHasSuffix applies the HasSuffix predicate on the "domain" field.
func DomainNotIn ¶
DomainNotIn applies the NotIn predicate on the "domain" field.
func Extra ¶
Extra applies equality check predicate on the "extra" field. It's identical to ExtraEQ.
func ExtraContains ¶
ExtraContains applies the Contains predicate on the "extra" field.
func ExtraContainsFold ¶
ExtraContainsFold applies the ContainsFold predicate on the "extra" field.
func ExtraEqualFold ¶
ExtraEqualFold applies the EqualFold predicate on the "extra" field.
func ExtraHasPrefix ¶
ExtraHasPrefix applies the HasPrefix predicate on the "extra" field.
func ExtraHasSuffix ¶
ExtraHasSuffix applies the HasSuffix predicate on the "extra" field.
func ExtraNotIn ¶
ExtraNotIn applies the NotIn predicate on the "extra" field.
func Hostname ¶
Hostname applies equality check predicate on the "hostname" field. It's identical to HostnameEQ.
func HostnameContains ¶
HostnameContains applies the Contains predicate on the "hostname" field.
func HostnameContainsFold ¶
HostnameContainsFold applies the ContainsFold predicate on the "hostname" field.
func HostnameEQ ¶
HostnameEQ applies the EQ predicate on the "hostname" field.
func HostnameEqualFold ¶
HostnameEqualFold applies the EqualFold predicate on the "hostname" field.
func HostnameGT ¶
HostnameGT applies the GT predicate on the "hostname" field.
func HostnameGTE ¶
HostnameGTE applies the GTE predicate on the "hostname" field.
func HostnameHasPrefix ¶
HostnameHasPrefix applies the HasPrefix predicate on the "hostname" field.
func HostnameHasSuffix ¶
HostnameHasSuffix applies the HasSuffix predicate on the "hostname" field.
func HostnameIn ¶
HostnameIn applies the In predicate on the "hostname" field.
func HostnameLT ¶
HostnameLT applies the LT predicate on the "hostname" field.
func HostnameLTE ¶
HostnameLTE applies the LTE predicate on the "hostname" field.
func HostnameNEQ ¶
HostnameNEQ applies the NEQ predicate on the "hostname" field.
func HostnameNotIn ¶
HostnameNotIn applies the NotIn predicate on the "hostname" field.
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func IsPriv ¶
IsPriv applies equality check predicate on the "is_priv" field. It's identical to IsPrivEQ.
func OsMeta ¶
OsMeta applies equality check predicate on the "os_meta" field. It's identical to OsMetaEQ.
func OsMetaContains ¶
OsMetaContains applies the Contains predicate on the "os_meta" field.
func OsMetaContainsFold ¶
OsMetaContainsFold applies the ContainsFold predicate on the "os_meta" field.
func OsMetaEqualFold ¶
OsMetaEqualFold applies the EqualFold predicate on the "os_meta" field.
func OsMetaHasPrefix ¶
OsMetaHasPrefix applies the HasPrefix predicate on the "os_meta" field.
func OsMetaHasSuffix ¶
OsMetaHasSuffix applies the HasSuffix predicate on the "os_meta" field.
func OsMetaNotIn ¶
OsMetaNotIn applies the NotIn predicate on the "os_meta" field.
func ProcName ¶
ProcName applies equality check predicate on the "proc_name" field. It's identical to ProcNameEQ.
func ProcNameContains ¶
ProcNameContains applies the Contains predicate on the "proc_name" field.
func ProcNameContainsFold ¶
ProcNameContainsFold applies the ContainsFold predicate on the "proc_name" field.
func ProcNameEQ ¶
ProcNameEQ applies the EQ predicate on the "proc_name" field.
func ProcNameEqualFold ¶
ProcNameEqualFold applies the EqualFold predicate on the "proc_name" field.
func ProcNameGT ¶
ProcNameGT applies the GT predicate on the "proc_name" field.
func ProcNameGTE ¶
ProcNameGTE applies the GTE predicate on the "proc_name" field.
func ProcNameHasPrefix ¶
ProcNameHasPrefix applies the HasPrefix predicate on the "proc_name" field.
func ProcNameHasSuffix ¶
ProcNameHasSuffix applies the HasSuffix predicate on the "proc_name" field.
func ProcNameIn ¶
ProcNameIn applies the In predicate on the "proc_name" field.
func ProcNameLT ¶
ProcNameLT applies the LT predicate on the "proc_name" field.
func ProcNameLTE ¶
ProcNameLTE applies the LTE predicate on the "proc_name" field.
func ProcNameNEQ ¶
ProcNameNEQ applies the NEQ predicate on the "proc_name" field.
func ProcNameNotIn ¶
ProcNameNotIn applies the NotIn predicate on the "proc_name" field.
func Username ¶
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
UsernameIn applies the In predicate on the "username" field.
func UsernameLT ¶
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
UsernameNotIn applies the NotIn predicate on the "username" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Session queries.
func ByAgentID ¶
func ByAgentID(opts ...sql.OrderTermOption) OrderOption
ByAgentID orders the results by the agent_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDomain ¶
func ByDomain(opts ...sql.OrderTermOption) OrderOption
ByDomain orders the results by the domain field.
func ByExtra ¶
func ByExtra(opts ...sql.OrderTermOption) OrderOption
ByExtra orders the results by the extra field.
func ByHostname ¶
func ByHostname(opts ...sql.OrderTermOption) OrderOption
ByHostname orders the results by the hostname field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsPriv ¶
func ByIsPriv(opts ...sql.OrderTermOption) OrderOption
ByIsPriv orders the results by the is_priv field.
func ByOsMeta ¶
func ByOsMeta(opts ...sql.OrderTermOption) OrderOption
ByOsMeta orders the results by the os_meta field.
func ByProcName ¶
func ByProcName(opts ...sql.OrderTermOption) OrderOption
ByProcName orders the results by the proc_name field.
func ByUsername ¶
func ByUsername(opts ...sql.OrderTermOption) OrderOption
ByUsername orders the results by the username field.