flow

package
v0.0.0-...-444ad2e Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the flow type in the database.
	Label = "flow"
	// FieldID holds the string denoting the id field in the database.
	FieldID               = "id"                // FieldState holds the string denoting the state vertex property in the database.
	FieldState            = "state"             // FieldStateTable holds the string denoting the statetable vertex property in the database.
	FieldStateTable       = "state_table"       // FieldInitialState holds the string denoting the initialstate vertex property in the database.
	FieldInitialState     = "initial_state"     // FieldTerminationState holds the string denoting the terminationstate vertex property in the database.
	FieldTerminationState = "termination_state" // FieldPastState holds the string denoting the paststate vertex property in the database.
	FieldPastState        = "past_state"        // FieldInputs holds the string denoting the inputs vertex property in the database.
	FieldInputs           = "inputs"

	// EdgeSurvey holds the string denoting the survey edge name in mutations.
	EdgeSurvey = "survey"
	// EdgeQuestions holds the string denoting the questions edge name in mutations.
	EdgeQuestions = "questions"

	// Table holds the table name of the flow in the database.
	Table = "flows"
	// SurveyTable is the table the holds the survey relation/edge.
	SurveyTable = "flows"
	// SurveyInverseTable is the table name for the Survey entity.
	// It exists in this package in order to avoid circular dependency with the "survey" package.
	SurveyInverseTable = "surveys"
	// SurveyColumn is the table column denoting the survey relation/edge.
	SurveyColumn = "survey_flow"
	// QuestionsTable is the table the holds the questions relation/edge.
	QuestionsTable = "questions"
	// QuestionsInverseTable is the table name for the Question entity.
	// It exists in this package in order to avoid circular dependency with the "question" package.
	QuestionsInverseTable = "questions"
	// QuestionsColumn is the table column denoting the questions relation/edge.
	QuestionsColumn = "flow_questions"
)

Variables

Columns holds all SQL columns for flow fields.

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

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

View Source
var (
	// StateTableValidator is a validator for the "stateTable" field. It is called by the builders before save.
	StateTableValidator func(string) error
)

Functions

func And

func And(predicates ...predicate.Flow) predicate.Flow

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

func HasQuestions

func HasQuestions() predicate.Flow

HasQuestions applies the HasEdge predicate on the "questions" edge.

func HasQuestionsWith

func HasQuestionsWith(preds ...predicate.Question) predicate.Flow

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

func HasSurvey

func HasSurvey() predicate.Flow

HasSurvey applies the HasEdge predicate on the "survey" edge.

func HasSurveyWith

func HasSurveyWith(preds ...predicate.Survey) predicate.Flow

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

func ID

func ID(id uuid.UUID) predicate.Flow

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Flow

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Flow

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Flow

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Flow

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Flow

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Flow

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Flow

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Flow

IDNotIn applies the NotIn predicate on the ID field.

func InitialState

func InitialState(v uuid.UUID) predicate.Flow

InitialState applies equality check predicate on the "initialState" field. It's identical to InitialStateEQ.

func InitialStateEQ

func InitialStateEQ(v uuid.UUID) predicate.Flow

InitialStateEQ applies the EQ predicate on the "initialState" field.

func InitialStateGT

func InitialStateGT(v uuid.UUID) predicate.Flow

InitialStateGT applies the GT predicate on the "initialState" field.

func InitialStateGTE

func InitialStateGTE(v uuid.UUID) predicate.Flow

InitialStateGTE applies the GTE predicate on the "initialState" field.

func InitialStateIn

func InitialStateIn(vs ...uuid.UUID) predicate.Flow

InitialStateIn applies the In predicate on the "initialState" field.

func InitialStateLT

func InitialStateLT(v uuid.UUID) predicate.Flow

InitialStateLT applies the LT predicate on the "initialState" field.

func InitialStateLTE

func InitialStateLTE(v uuid.UUID) predicate.Flow

InitialStateLTE applies the LTE predicate on the "initialState" field.

func InitialStateNEQ

func InitialStateNEQ(v uuid.UUID) predicate.Flow

InitialStateNEQ applies the NEQ predicate on the "initialState" field.

func InitialStateNotIn

func InitialStateNotIn(vs ...uuid.UUID) predicate.Flow

InitialStateNotIn applies the NotIn predicate on the "initialState" field.

func InputsIsNil

func InputsIsNil() predicate.Flow

InputsIsNil applies the IsNil predicate on the "inputs" field.

func InputsNotNil

func InputsNotNil() predicate.Flow

InputsNotNil applies the NotNil predicate on the "inputs" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Flow) predicate.Flow

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

func PastState

func PastState(v uuid.UUID) predicate.Flow

PastState applies equality check predicate on the "pastState" field. It's identical to PastStateEQ.

func PastStateEQ

func PastStateEQ(v uuid.UUID) predicate.Flow

PastStateEQ applies the EQ predicate on the "pastState" field.

func PastStateGT

func PastStateGT(v uuid.UUID) predicate.Flow

PastStateGT applies the GT predicate on the "pastState" field.

func PastStateGTE

func PastStateGTE(v uuid.UUID) predicate.Flow

PastStateGTE applies the GTE predicate on the "pastState" field.

func PastStateIn

func PastStateIn(vs ...uuid.UUID) predicate.Flow

PastStateIn applies the In predicate on the "pastState" field.

func PastStateIsNil

func PastStateIsNil() predicate.Flow

PastStateIsNil applies the IsNil predicate on the "pastState" field.

func PastStateLT

func PastStateLT(v uuid.UUID) predicate.Flow

PastStateLT applies the LT predicate on the "pastState" field.

func PastStateLTE

func PastStateLTE(v uuid.UUID) predicate.Flow

PastStateLTE applies the LTE predicate on the "pastState" field.

func PastStateNEQ

func PastStateNEQ(v uuid.UUID) predicate.Flow

PastStateNEQ applies the NEQ predicate on the "pastState" field.

func PastStateNotIn

func PastStateNotIn(vs ...uuid.UUID) predicate.Flow

PastStateNotIn applies the NotIn predicate on the "pastState" field.

func PastStateNotNil

func PastStateNotNil() predicate.Flow

PastStateNotNil applies the NotNil predicate on the "pastState" field.

func State

func State(v uuid.UUID) predicate.Flow

State applies equality check predicate on the "state" field. It's identical to StateEQ.

func StateEQ

func StateEQ(v uuid.UUID) predicate.Flow

StateEQ applies the EQ predicate on the "state" field.

func StateGT

func StateGT(v uuid.UUID) predicate.Flow

StateGT applies the GT predicate on the "state" field.

func StateGTE

func StateGTE(v uuid.UUID) predicate.Flow

StateGTE applies the GTE predicate on the "state" field.

func StateIn

func StateIn(vs ...uuid.UUID) predicate.Flow

StateIn applies the In predicate on the "state" field.

func StateLT

func StateLT(v uuid.UUID) predicate.Flow

StateLT applies the LT predicate on the "state" field.

func StateLTE

func StateLTE(v uuid.UUID) predicate.Flow

StateLTE applies the LTE predicate on the "state" field.

func StateNEQ

func StateNEQ(v uuid.UUID) predicate.Flow

StateNEQ applies the NEQ predicate on the "state" field.

func StateNotIn

func StateNotIn(vs ...uuid.UUID) predicate.Flow

StateNotIn applies the NotIn predicate on the "state" field.

func StateTable

func StateTable(v string) predicate.Flow

StateTable applies equality check predicate on the "stateTable" field. It's identical to StateTableEQ.

func StateTableContains

func StateTableContains(v string) predicate.Flow

StateTableContains applies the Contains predicate on the "stateTable" field.

func StateTableContainsFold

func StateTableContainsFold(v string) predicate.Flow

StateTableContainsFold applies the ContainsFold predicate on the "stateTable" field.

func StateTableEQ

func StateTableEQ(v string) predicate.Flow

StateTableEQ applies the EQ predicate on the "stateTable" field.

func StateTableEqualFold

func StateTableEqualFold(v string) predicate.Flow

StateTableEqualFold applies the EqualFold predicate on the "stateTable" field.

func StateTableGT

func StateTableGT(v string) predicate.Flow

StateTableGT applies the GT predicate on the "stateTable" field.

func StateTableGTE

func StateTableGTE(v string) predicate.Flow

StateTableGTE applies the GTE predicate on the "stateTable" field.

func StateTableHasPrefix

func StateTableHasPrefix(v string) predicate.Flow

StateTableHasPrefix applies the HasPrefix predicate on the "stateTable" field.

func StateTableHasSuffix

func StateTableHasSuffix(v string) predicate.Flow

StateTableHasSuffix applies the HasSuffix predicate on the "stateTable" field.

func StateTableIn

func StateTableIn(vs ...string) predicate.Flow

StateTableIn applies the In predicate on the "stateTable" field.

func StateTableLT

func StateTableLT(v string) predicate.Flow

StateTableLT applies the LT predicate on the "stateTable" field.

func StateTableLTE

func StateTableLTE(v string) predicate.Flow

StateTableLTE applies the LTE predicate on the "stateTable" field.

func StateTableNEQ

func StateTableNEQ(v string) predicate.Flow

StateTableNEQ applies the NEQ predicate on the "stateTable" field.

func StateTableNotIn

func StateTableNotIn(vs ...string) predicate.Flow

StateTableNotIn applies the NotIn predicate on the "stateTable" field.

func TerminationState

func TerminationState(v uuid.UUID) predicate.Flow

TerminationState applies equality check predicate on the "terminationState" field. It's identical to TerminationStateEQ.

func TerminationStateEQ

func TerminationStateEQ(v uuid.UUID) predicate.Flow

TerminationStateEQ applies the EQ predicate on the "terminationState" field.

func TerminationStateGT

func TerminationStateGT(v uuid.UUID) predicate.Flow

TerminationStateGT applies the GT predicate on the "terminationState" field.

func TerminationStateGTE

func TerminationStateGTE(v uuid.UUID) predicate.Flow

TerminationStateGTE applies the GTE predicate on the "terminationState" field.

func TerminationStateIn

func TerminationStateIn(vs ...uuid.UUID) predicate.Flow

TerminationStateIn applies the In predicate on the "terminationState" field.

func TerminationStateLT

func TerminationStateLT(v uuid.UUID) predicate.Flow

TerminationStateLT applies the LT predicate on the "terminationState" field.

func TerminationStateLTE

func TerminationStateLTE(v uuid.UUID) predicate.Flow

TerminationStateLTE applies the LTE predicate on the "terminationState" field.

func TerminationStateNEQ

func TerminationStateNEQ(v uuid.UUID) predicate.Flow

TerminationStateNEQ applies the NEQ predicate on the "terminationState" field.

func TerminationStateNotIn

func TerminationStateNotIn(vs ...uuid.UUID) predicate.Flow

TerminationStateNotIn applies the NotIn predicate on the "terminationState" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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