signin

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the signin type in the database.
	Label = "signin"
	// 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"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the signin in the database.
	Table = "signins"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "signins"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_signins"
)

Variables

Columns holds all SQL columns for signin fields.

View Source
var (
	// DefaultTimestamp holds the default value on creation for the "timestamp" field.
	DefaultTimestamp func() time.Time
)
View Source
var ForeignKeys = []string{
	"user_signins",
}

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

Functions

func And

func And(predicates ...predicate.Signin) predicate.Signin

And groups predicates with the AND operator between them.

func HasUser

func HasUser() predicate.Signin

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Signin

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

func ID

func ID(id int) predicate.Signin

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Signin

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Signin

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Signin

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Signin

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Signin

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Signin

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Signin) predicate.Signin

Or groups predicates with the OR operator between them.

func Timestamp

func Timestamp(v time.Time) predicate.Signin

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

func TimestampEQ

func TimestampEQ(v time.Time) predicate.Signin

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

func TimestampGT

func TimestampGT(v time.Time) predicate.Signin

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

func TimestampGTE

func TimestampGTE(v time.Time) predicate.Signin

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

func TimestampIn

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

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

func TimestampLT

func TimestampLT(v time.Time) predicate.Signin

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

func TimestampLTE

func TimestampLTE(v time.Time) predicate.Signin

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

func TimestampNEQ

func TimestampNEQ(v time.Time) predicate.Signin

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

func TimestampNotIn

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

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

func TypeEQ

func TypeEQ(v Type) predicate.Signin

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.Signin

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.Signin

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Signin

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

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

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 Signin queries.

func ByID

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

ByID orders the results by the id field.

func ByTimestamp

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

ByTimestamp orders the results by the timestamp field.

func ByType

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

ByType orders the results by the type field.

func ByUserField

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

ByUserField orders the results by user field.

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeGeneralMeeting        Type = "General Meeting"
	TypeRedTeam               Type = "Red Team"
	TypeRedTeamRecruiting     Type = "Red Team Recruiting"
	TypeReversing             Type = "Reversing"
	TypeRVAPT                 Type = "RVAPT"
	TypeContagion             Type = "Contagion"
	TypePhysical              Type = "Physical"
	TypeWireless              Type = "Wireless"
	TypeIR                    Type = "IR"
	TypeWiCyS                 Type = "WiCyS"
	TypeOps                   Type = "Ops"
	TypeOpsIG                 Type = "Ops IG"
	TypeVulnerabilityResearch Type = "Vulnerability Research"
	TypeMentorship            Type = "Mentorship"
	TypeOther                 Type = "Other"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳