usersecuritylog

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the usersecuritylog type in the database.
	Label = "user_security_log"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// FieldAction holds the string denoting the action field in the database.
	FieldAction = "action"
	// FieldIP holds the string denoting the ip field in the database.
	FieldIP = "ip"
	// FieldRequestID holds the string denoting the request_id field in the database.
	FieldRequestID = "request_id"
	// FieldServerVersion holds the string denoting the server_version field in the database.
	FieldServerVersion = "server_version"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldRemark holds the string denoting the remark field in the database.
	FieldRemark = "remark"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// EdgeSecurityLogsOwner holds the string denoting the security_logs_owner edge name in mutations.
	EdgeSecurityLogsOwner = "security_logs_owner"
	// Table holds the table name of the usersecuritylog in the database.
	Table = "user_security_log"
	// SecurityLogsOwnerTable is the table that holds the security_logs_owner relation/edge.
	SecurityLogsOwnerTable = "user_security_log"
	// SecurityLogsOwnerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	SecurityLogsOwnerInverseTable = "user"
	// SecurityLogsOwnerColumn is the table column denoting the security_logs_owner relation/edge.
	SecurityLogsOwnerColumn = "owner_id"
)
View Source
const DefaultAction = ActionUNKNOWN

ActionUNKNOWN is the default value of the Action enum.

Variables

View Source
var (
	// IPValidator is a validator for the "ip" field. It is called by the builders before save.
	IPValidator func(string) error
	// RequestIDValidator is a validator for the "request_id" field. It is called by the builders before save.
	RequestIDValidator func(string) error
	// ServerVersionValidator is a validator for the "server_version" field. It is called by the builders before save.
	ServerVersionValidator func(string) error
	// DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
	DescriptionValidator func(string) error
	// RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
	RemarkValidator func(string) error
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
)

Columns holds all SQL columns for usersecuritylog fields.

Functions

func ActionEQ

func ActionEQ(v Action) predicate.UserSecurityLog

ActionEQ applies the EQ predicate on the "action" field.

func ActionIn

func ActionIn(vs ...Action) predicate.UserSecurityLog

ActionIn applies the In predicate on the "action" field.

func ActionNEQ

func ActionNEQ(v Action) predicate.UserSecurityLog

ActionNEQ applies the NEQ predicate on the "action" field.

func ActionNotIn

func ActionNotIn(vs ...Action) predicate.UserSecurityLog

ActionNotIn applies the NotIn predicate on the "action" field.

func ActionValidator

func ActionValidator(a Action) error

ActionValidator is a validator for the "action" field enum values. It is called by the builders before save.

func And

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.UserSecurityLog

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.UserSecurityLog

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.UserSecurityLog

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.UserSecurityLog

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.UserSecurityLog

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.UserSecurityLog

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.UserSecurityLog

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.UserSecurityLog

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.UserSecurityLog

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func Description

func Description(v string) predicate.UserSecurityLog

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.UserSecurityLog

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.UserSecurityLog

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.UserSecurityLog

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.UserSecurityLog

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.UserSecurityLog

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.UserSecurityLog

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.UserSecurityLog

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.UserSecurityLog

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.UserSecurityLog

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.UserSecurityLog

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.UserSecurityLog

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.UserSecurityLog

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.UserSecurityLog

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.UserSecurityLog

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.UserSecurityLog

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasSecurityLogsOwner

func HasSecurityLogsOwner() predicate.UserSecurityLog

HasSecurityLogsOwner applies the HasEdge predicate on the "security_logs_owner" edge.

func HasSecurityLogsOwnerWith

func HasSecurityLogsOwnerWith(preds ...predicate.User) predicate.UserSecurityLog

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.UserSecurityLog

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.UserSecurityLog

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.UserSecurityLog

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.UserSecurityLog

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.UserSecurityLog

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.UserSecurityLog

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IP

IP applies equality check predicate on the "ip" field. It's identical to IPEQ.

func IPContains

func IPContains(v string) predicate.UserSecurityLog

IPContains applies the Contains predicate on the "ip" field.

func IPContainsFold

func IPContainsFold(v string) predicate.UserSecurityLog

IPContainsFold applies the ContainsFold predicate on the "ip" field.

func IPEQ

IPEQ applies the EQ predicate on the "ip" field.

func IPEqualFold

func IPEqualFold(v string) predicate.UserSecurityLog

IPEqualFold applies the EqualFold predicate on the "ip" field.

func IPGT

IPGT applies the GT predicate on the "ip" field.

func IPGTE

IPGTE applies the GTE predicate on the "ip" field.

func IPHasPrefix

func IPHasPrefix(v string) predicate.UserSecurityLog

IPHasPrefix applies the HasPrefix predicate on the "ip" field.

func IPHasSuffix

func IPHasSuffix(v string) predicate.UserSecurityLog

IPHasSuffix applies the HasSuffix predicate on the "ip" field.

func IPIn

func IPIn(vs ...string) predicate.UserSecurityLog

IPIn applies the In predicate on the "ip" field.

func IPIsNil

func IPIsNil() predicate.UserSecurityLog

IPIsNil applies the IsNil predicate on the "ip" field.

func IPLT

IPLT applies the LT predicate on the "ip" field.

func IPLTE

IPLTE applies the LTE predicate on the "ip" field.

func IPNEQ

IPNEQ applies the NEQ predicate on the "ip" field.

func IPNotIn

func IPNotIn(vs ...string) predicate.UserSecurityLog

IPNotIn applies the NotIn predicate on the "ip" field.

func IPNotNil

func IPNotNil() predicate.UserSecurityLog

IPNotNil applies the NotNil predicate on the "ip" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v int) predicate.UserSecurityLog

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDEQ

func OwnerIDEQ(v int) predicate.UserSecurityLog

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDIn

func OwnerIDIn(vs ...int) predicate.UserSecurityLog

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v int) predicate.UserSecurityLog

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

func OwnerIDNotIn(vs ...int) predicate.UserSecurityLog

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func Remark

Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.

func RemarkContains

func RemarkContains(v string) predicate.UserSecurityLog

RemarkContains applies the Contains predicate on the "remark" field.

func RemarkContainsFold

func RemarkContainsFold(v string) predicate.UserSecurityLog

RemarkContainsFold applies the ContainsFold predicate on the "remark" field.

func RemarkEQ

func RemarkEQ(v string) predicate.UserSecurityLog

RemarkEQ applies the EQ predicate on the "remark" field.

func RemarkEqualFold

func RemarkEqualFold(v string) predicate.UserSecurityLog

RemarkEqualFold applies the EqualFold predicate on the "remark" field.

func RemarkGT

func RemarkGT(v string) predicate.UserSecurityLog

RemarkGT applies the GT predicate on the "remark" field.

func RemarkGTE

func RemarkGTE(v string) predicate.UserSecurityLog

RemarkGTE applies the GTE predicate on the "remark" field.

func RemarkHasPrefix

func RemarkHasPrefix(v string) predicate.UserSecurityLog

RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.

func RemarkHasSuffix

func RemarkHasSuffix(v string) predicate.UserSecurityLog

RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.

func RemarkIn

func RemarkIn(vs ...string) predicate.UserSecurityLog

RemarkIn applies the In predicate on the "remark" field.

func RemarkIsNil

func RemarkIsNil() predicate.UserSecurityLog

RemarkIsNil applies the IsNil predicate on the "remark" field.

func RemarkLT

func RemarkLT(v string) predicate.UserSecurityLog

RemarkLT applies the LT predicate on the "remark" field.

func RemarkLTE

func RemarkLTE(v string) predicate.UserSecurityLog

RemarkLTE applies the LTE predicate on the "remark" field.

func RemarkNEQ

func RemarkNEQ(v string) predicate.UserSecurityLog

RemarkNEQ applies the NEQ predicate on the "remark" field.

func RemarkNotIn

func RemarkNotIn(vs ...string) predicate.UserSecurityLog

RemarkNotIn applies the NotIn predicate on the "remark" field.

func RemarkNotNil

func RemarkNotNil() predicate.UserSecurityLog

RemarkNotNil applies the NotNil predicate on the "remark" field.

func RequestID

func RequestID(v string) predicate.UserSecurityLog

RequestID applies equality check predicate on the "request_id" field. It's identical to RequestIDEQ.

func RequestIDContains

func RequestIDContains(v string) predicate.UserSecurityLog

RequestIDContains applies the Contains predicate on the "request_id" field.

func RequestIDContainsFold

func RequestIDContainsFold(v string) predicate.UserSecurityLog

RequestIDContainsFold applies the ContainsFold predicate on the "request_id" field.

func RequestIDEQ

func RequestIDEQ(v string) predicate.UserSecurityLog

RequestIDEQ applies the EQ predicate on the "request_id" field.

func RequestIDEqualFold

func RequestIDEqualFold(v string) predicate.UserSecurityLog

RequestIDEqualFold applies the EqualFold predicate on the "request_id" field.

func RequestIDGT

func RequestIDGT(v string) predicate.UserSecurityLog

RequestIDGT applies the GT predicate on the "request_id" field.

func RequestIDGTE

func RequestIDGTE(v string) predicate.UserSecurityLog

RequestIDGTE applies the GTE predicate on the "request_id" field.

func RequestIDHasPrefix

func RequestIDHasPrefix(v string) predicate.UserSecurityLog

RequestIDHasPrefix applies the HasPrefix predicate on the "request_id" field.

func RequestIDHasSuffix

func RequestIDHasSuffix(v string) predicate.UserSecurityLog

RequestIDHasSuffix applies the HasSuffix predicate on the "request_id" field.

func RequestIDIn

func RequestIDIn(vs ...string) predicate.UserSecurityLog

RequestIDIn applies the In predicate on the "request_id" field.

func RequestIDIsNil

func RequestIDIsNil() predicate.UserSecurityLog

RequestIDIsNil applies the IsNil predicate on the "request_id" field.

func RequestIDLT

func RequestIDLT(v string) predicate.UserSecurityLog

RequestIDLT applies the LT predicate on the "request_id" field.

func RequestIDLTE

func RequestIDLTE(v string) predicate.UserSecurityLog

RequestIDLTE applies the LTE predicate on the "request_id" field.

func RequestIDNEQ

func RequestIDNEQ(v string) predicate.UserSecurityLog

RequestIDNEQ applies the NEQ predicate on the "request_id" field.

func RequestIDNotIn

func RequestIDNotIn(vs ...string) predicate.UserSecurityLog

RequestIDNotIn applies the NotIn predicate on the "request_id" field.

func RequestIDNotNil

func RequestIDNotNil() predicate.UserSecurityLog

RequestIDNotNil applies the NotNil predicate on the "request_id" field.

func ServerVersion

func ServerVersion(v string) predicate.UserSecurityLog

ServerVersion applies equality check predicate on the "server_version" field. It's identical to ServerVersionEQ.

func ServerVersionContains

func ServerVersionContains(v string) predicate.UserSecurityLog

ServerVersionContains applies the Contains predicate on the "server_version" field.

func ServerVersionContainsFold

func ServerVersionContainsFold(v string) predicate.UserSecurityLog

ServerVersionContainsFold applies the ContainsFold predicate on the "server_version" field.

func ServerVersionEQ

func ServerVersionEQ(v string) predicate.UserSecurityLog

ServerVersionEQ applies the EQ predicate on the "server_version" field.

func ServerVersionEqualFold

func ServerVersionEqualFold(v string) predicate.UserSecurityLog

ServerVersionEqualFold applies the EqualFold predicate on the "server_version" field.

func ServerVersionGT

func ServerVersionGT(v string) predicate.UserSecurityLog

ServerVersionGT applies the GT predicate on the "server_version" field.

func ServerVersionGTE

func ServerVersionGTE(v string) predicate.UserSecurityLog

ServerVersionGTE applies the GTE predicate on the "server_version" field.

func ServerVersionHasPrefix

func ServerVersionHasPrefix(v string) predicate.UserSecurityLog

ServerVersionHasPrefix applies the HasPrefix predicate on the "server_version" field.

func ServerVersionHasSuffix

func ServerVersionHasSuffix(v string) predicate.UserSecurityLog

ServerVersionHasSuffix applies the HasSuffix predicate on the "server_version" field.

func ServerVersionIn

func ServerVersionIn(vs ...string) predicate.UserSecurityLog

ServerVersionIn applies the In predicate on the "server_version" field.

func ServerVersionIsNil

func ServerVersionIsNil() predicate.UserSecurityLog

ServerVersionIsNil applies the IsNil predicate on the "server_version" field.

func ServerVersionLT

func ServerVersionLT(v string) predicate.UserSecurityLog

ServerVersionLT applies the LT predicate on the "server_version" field.

func ServerVersionLTE

func ServerVersionLTE(v string) predicate.UserSecurityLog

ServerVersionLTE applies the LTE predicate on the "server_version" field.

func ServerVersionNEQ

func ServerVersionNEQ(v string) predicate.UserSecurityLog

ServerVersionNEQ applies the NEQ predicate on the "server_version" field.

func ServerVersionNotIn

func ServerVersionNotIn(vs ...string) predicate.UserSecurityLog

ServerVersionNotIn applies the NotIn predicate on the "server_version" field.

func ServerVersionNotNil

func ServerVersionNotNil() predicate.UserSecurityLog

ServerVersionNotNil applies the NotNil predicate on the "server_version" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Action

type Action string

Action defines the type for the "action" enum field.

const (
	ActionUNKNOWN         Action = "UNKNOWN"
	ActionSIGN_IN         Action = "SIGN_IN"
	ActionSIGN_OUT        Action = "SIGN_OUT"
	ActionPWD_AUTH        Action = "PWD_AUTH"
	ActionSIGN_UP_EMAIL   Action = "SIGN_UP_EMAIL"
	ActionSIGN_IN___PWD   Action = "SIGN_IN___PWD"
	ActionSIGN_IN___PHONE Action = "SIGN_IN___PHONE"
	ActionSIGN_IN___EMAIL Action = "SIGN_IN___EMAIL"
	Action2NDAUTHPWD      Action = "2ND_AUTH___PWD"
	Action2NDAUTHPHONE    Action = "2ND_AUTH___PHONE"
	Action2NDAUTHEMAIL    Action = "2ND_AUTH___EMAIL"
)

Action values.

func (Action) String

func (a Action) String() string

Jump to

Keyboard shortcuts

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