step

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the step type in the database.
	Label = "step"
	// 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"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldIndex holds the string denoting the index field in the database.
	FieldIndex = "index"
	// FieldDuration holds the string denoting the duration field in the database.
	FieldDuration = "duration"
	// FieldMsgArgs holds the string denoting the msgargs field in the database.
	FieldMsgArgs = "msg_args"
	// FieldHitArgs holds the string denoting the hitargs field in the database.
	FieldHitArgs = "hit_args"
	// FieldFilterArgs holds the string denoting the filterargs field in the database.
	FieldFilterArgs = "filter_args"

	// EdgeStepRun holds the string denoting the steprun edge name in mutations.
	EdgeStepRun = "stepRun"
	// EdgeTemplate holds the string denoting the template edge name in mutations.
	EdgeTemplate = "template"

	// Table holds the table name of the step in the database.
	Table = "steps"
	// StepRunTable is the table the holds the stepRun relation/edge.
	StepRunTable = "steps"
	// StepRunInverseTable is the table name for the StepRun entity.
	// It exists in this package in order to avoid circular dependency with the "steprun" package.
	StepRunInverseTable = "step_runs"
	// StepRunColumn is the table column denoting the stepRun relation/edge.
	StepRunColumn = "step_run_step"
	// TemplateTable is the table the holds the template relation/edge.
	TemplateTable = "steps"
	// TemplateInverseTable is the table name for the Template entity.
	// It exists in this package in order to avoid circular dependency with the "template" package.
	TemplateInverseTable = "templates"
	// TemplateColumn is the table column denoting the template relation/edge.
	TemplateColumn = "template_steps"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the created_at field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the updated_at field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	UpdateDefaultUpdatedAt func() time.Time
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for step fields.

View Source
var ForeignKeys = []string{
	"step_run_step",
	"template_steps",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Step type.

Functions

func And

func And(predicates ...predicate.Step) predicate.Step

And groups list of predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Step

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Step

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Step

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Step

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Step

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Step

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Step

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Step

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Step

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Duration

func Duration(v int) predicate.Step

Duration applies equality check predicate on the "duration" field. It's identical to DurationEQ.

func DurationEQ

func DurationEQ(v int) predicate.Step

DurationEQ applies the EQ predicate on the "duration" field.

func DurationGT

func DurationGT(v int) predicate.Step

DurationGT applies the GT predicate on the "duration" field.

func DurationGTE

func DurationGTE(v int) predicate.Step

DurationGTE applies the GTE predicate on the "duration" field.

func DurationIn

func DurationIn(vs ...int) predicate.Step

DurationIn applies the In predicate on the "duration" field.

func DurationLT

func DurationLT(v int) predicate.Step

DurationLT applies the LT predicate on the "duration" field.

func DurationLTE

func DurationLTE(v int) predicate.Step

DurationLTE applies the LTE predicate on the "duration" field.

func DurationNEQ

func DurationNEQ(v int) predicate.Step

DurationNEQ applies the NEQ predicate on the "duration" field.

func DurationNotIn

func DurationNotIn(vs ...int) predicate.Step

DurationNotIn applies the NotIn predicate on the "duration" field.

func FilterArgsIsNil

func FilterArgsIsNil() predicate.Step

FilterArgsIsNil applies the IsNil predicate on the "filterArgs" field.

func FilterArgsNotNil

func FilterArgsNotNil() predicate.Step

FilterArgsNotNil applies the NotNil predicate on the "filterArgs" field.

func HasStepRun

func HasStepRun() predicate.Step

HasStepRun applies the HasEdge predicate on the "stepRun" edge.

func HasStepRunWith

func HasStepRunWith(preds ...predicate.StepRun) predicate.Step

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

func HasTemplate

func HasTemplate() predicate.Step

HasTemplate applies the HasEdge predicate on the "template" edge.

func HasTemplateWith

func HasTemplateWith(preds ...predicate.Template) predicate.Step

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

func HitArgsIsNil

func HitArgsIsNil() predicate.Step

HitArgsIsNil applies the IsNil predicate on the "hitArgs" field.

func HitArgsNotNil

func HitArgsNotNil() predicate.Step

HitArgsNotNil applies the NotNil predicate on the "hitArgs" field.

func ID

func ID(id string) predicate.Step

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id string) predicate.Step

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Step

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Step

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Step

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Step

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Step

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Step

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Step

IDNotIn applies the NotIn predicate on the ID field.

func Index

func Index(v int) predicate.Step

Index applies equality check predicate on the "index" field. It's identical to IndexEQ.

func IndexEQ

func IndexEQ(v int) predicate.Step

IndexEQ applies the EQ predicate on the "index" field.

func IndexGT

func IndexGT(v int) predicate.Step

IndexGT applies the GT predicate on the "index" field.

func IndexGTE

func IndexGTE(v int) predicate.Step

IndexGTE applies the GTE predicate on the "index" field.

func IndexIn

func IndexIn(vs ...int) predicate.Step

IndexIn applies the In predicate on the "index" field.

func IndexLT

func IndexLT(v int) predicate.Step

IndexLT applies the LT predicate on the "index" field.

func IndexLTE

func IndexLTE(v int) predicate.Step

IndexLTE applies the LTE predicate on the "index" field.

func IndexNEQ

func IndexNEQ(v int) predicate.Step

IndexNEQ applies the NEQ predicate on the "index" field.

func IndexNotIn

func IndexNotIn(vs ...int) predicate.Step

IndexNotIn applies the NotIn predicate on the "index" field.

func MsgArgsIsNil

func MsgArgsIsNil() predicate.Step

MsgArgsIsNil applies the IsNil predicate on the "msgArgs" field.

func MsgArgsNotNil

func MsgArgsNotNil() predicate.Step

MsgArgsNotNil applies the NotNil predicate on the "msgArgs" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Step) predicate.Step

Or groups list of predicates with the OR operator between them.

func TypeEQ

func TypeEQ(v Type) predicate.Step

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

func TypeIn

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

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

func TypeNEQ

func TypeNEQ(v Type) predicate.Step

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

func TypeNotIn

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

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 UpdatedAt

func UpdatedAt(v time.Time) predicate.Step

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Step

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Step

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Step

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Step

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Step

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Step

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Step

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Step

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Type

type Type string

Type defines the type for the type enum field.

const (
	TypeMTURK_HIT          Type = "MTURK_HIT"
	TypeMTURK_MESSAGE      Type = "MTURK_MESSAGE"
	TypePARTICIPANT_FILTER Type = "PARTICIPANT_FILTER"
	TypeWAIT               Type = "WAIT"
)

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