Documentation
¶
Index ¶
- Constants
- Variables
- func ActionName(v string) predicate.ActionLog
- func ActionNameContains(v string) predicate.ActionLog
- func ActionNameContainsFold(v string) predicate.ActionLog
- func ActionNameEQ(v string) predicate.ActionLog
- func ActionNameEqualFold(v string) predicate.ActionLog
- func ActionNameGT(v string) predicate.ActionLog
- func ActionNameGTE(v string) predicate.ActionLog
- func ActionNameHasPrefix(v string) predicate.ActionLog
- func ActionNameHasSuffix(v string) predicate.ActionLog
- func ActionNameIn(vs ...string) predicate.ActionLog
- func ActionNameLT(v string) predicate.ActionLog
- func ActionNameLTE(v string) predicate.ActionLog
- func ActionNameNEQ(v string) predicate.ActionLog
- func ActionNameNotIn(vs ...string) predicate.ActionLog
- func And(predicates ...predicate.ActionLog) predicate.ActionLog
- func CompletedAt(v time.Time) predicate.ActionLog
- func CompletedAtEQ(v time.Time) predicate.ActionLog
- func CompletedAtGT(v time.Time) predicate.ActionLog
- func CompletedAtGTE(v time.Time) predicate.ActionLog
- func CompletedAtIn(vs ...time.Time) predicate.ActionLog
- func CompletedAtIsNil() predicate.ActionLog
- func CompletedAtLT(v time.Time) predicate.ActionLog
- func CompletedAtLTE(v time.Time) predicate.ActionLog
- func CompletedAtNEQ(v time.Time) predicate.ActionLog
- func CompletedAtNotIn(vs ...time.Time) predicate.ActionLog
- func CompletedAtNotNil() predicate.ActionLog
- func EffectsIsNil() predicate.ActionLog
- func EffectsNotNil() predicate.ActionLog
- func ErrorMessage(v string) predicate.ActionLog
- func ErrorMessageContains(v string) predicate.ActionLog
- func ErrorMessageContainsFold(v string) predicate.ActionLog
- func ErrorMessageEQ(v string) predicate.ActionLog
- func ErrorMessageEqualFold(v string) predicate.ActionLog
- func ErrorMessageGT(v string) predicate.ActionLog
- func ErrorMessageGTE(v string) predicate.ActionLog
- func ErrorMessageHasPrefix(v string) predicate.ActionLog
- func ErrorMessageHasSuffix(v string) predicate.ActionLog
- func ErrorMessageIn(vs ...string) predicate.ActionLog
- func ErrorMessageIsNil() predicate.ActionLog
- func ErrorMessageLT(v string) predicate.ActionLog
- func ErrorMessageLTE(v string) predicate.ActionLog
- func ErrorMessageNEQ(v string) predicate.ActionLog
- func ErrorMessageNotIn(vs ...string) predicate.ActionLog
- func ErrorMessageNotNil() predicate.ActionLog
- func ID(id uuid.UUID) predicate.ActionLog
- func IDEQ(id uuid.UUID) predicate.ActionLog
- func IDGT(id uuid.UUID) predicate.ActionLog
- func IDGTE(id uuid.UUID) predicate.ActionLog
- func IDIn(ids ...uuid.UUID) predicate.ActionLog
- func IDLT(id uuid.UUID) predicate.ActionLog
- func IDLTE(id uuid.UUID) predicate.ActionLog
- func IDNEQ(id uuid.UUID) predicate.ActionLog
- func IDNotIn(ids ...uuid.UUID) predicate.ActionLog
- func Not(p predicate.ActionLog) predicate.ActionLog
- func Or(predicates ...predicate.ActionLog) predicate.ActionLog
- func ParamsIsNil() predicate.ActionLog
- func ParamsNotNil() predicate.ActionLog
- func Principal(v string) predicate.ActionLog
- func PrincipalContains(v string) predicate.ActionLog
- func PrincipalContainsFold(v string) predicate.ActionLog
- func PrincipalEQ(v string) predicate.ActionLog
- func PrincipalEqualFold(v string) predicate.ActionLog
- func PrincipalGT(v string) predicate.ActionLog
- func PrincipalGTE(v string) predicate.ActionLog
- func PrincipalHasPrefix(v string) predicate.ActionLog
- func PrincipalHasSuffix(v string) predicate.ActionLog
- func PrincipalIn(vs ...string) predicate.ActionLog
- func PrincipalLT(v string) predicate.ActionLog
- func PrincipalLTE(v string) predicate.ActionLog
- func PrincipalNEQ(v string) predicate.ActionLog
- func PrincipalNotIn(vs ...string) predicate.ActionLog
- func StartedAt(v time.Time) predicate.ActionLog
- func StartedAtEQ(v time.Time) predicate.ActionLog
- func StartedAtGT(v time.Time) predicate.ActionLog
- func StartedAtGTE(v time.Time) predicate.ActionLog
- func StartedAtIn(vs ...time.Time) predicate.ActionLog
- func StartedAtLT(v time.Time) predicate.ActionLog
- func StartedAtLTE(v time.Time) predicate.ActionLog
- func StartedAtNEQ(v time.Time) predicate.ActionLog
- func StartedAtNotIn(vs ...time.Time) predicate.ActionLog
- func StatusEQ(v Status) predicate.ActionLog
- func StatusIn(vs ...Status) predicate.ActionLog
- func StatusNEQ(v Status) predicate.ActionLog
- func StatusNotIn(vs ...Status) predicate.ActionLog
- func StatusValidator(s Status) error
- func ValidColumn(column string) bool
- type OrderOption
- func ByActionName(opts ...sql.OrderTermOption) OrderOption
- func ByCompletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByErrorMessage(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPrincipal(opts ...sql.OrderTermOption) OrderOption
- func ByStartedAt(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
const ( // Label holds the string label denoting the actionlog type in the database. Label = "action_log" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldActionName holds the string denoting the action_name field in the database. FieldActionName = "action_name" // FieldPrincipal holds the string denoting the principal field in the database. FieldPrincipal = "principal" // FieldParams holds the string denoting the params field in the database. FieldParams = "params" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldEffects holds the string denoting the effects field in the database. FieldEffects = "effects" // FieldErrorMessage holds the string denoting the error_message field in the database. FieldErrorMessage = "error_message" // FieldStartedAt holds the string denoting the started_at field in the database. FieldStartedAt = "started_at" // FieldCompletedAt holds the string denoting the completed_at field in the database. FieldCompletedAt = "completed_at" // Table holds the table name of the actionlog in the database. Table = "action_logs" )
const DefaultStatus = StatusStarted
StatusStarted is the default value of the Status enum.
Variables ¶
var ( // ActionNameValidator is a validator for the "action_name" field. It is called by the builders before save. ActionNameValidator func(string) error // PrincipalValidator is a validator for the "principal" field. It is called by the builders before save. PrincipalValidator func(string) error // DefaultStartedAt holds the default value on creation for the "started_at" field. DefaultStartedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldActionName, FieldPrincipal, FieldParams, FieldStatus, FieldEffects, FieldErrorMessage, FieldStartedAt, FieldCompletedAt, }
Columns holds all SQL columns for actionlog fields.
Functions ¶
func ActionName ¶
ActionName applies equality check predicate on the "action_name" field. It's identical to ActionNameEQ.
func ActionNameContains ¶
ActionNameContains applies the Contains predicate on the "action_name" field.
func ActionNameContainsFold ¶
ActionNameContainsFold applies the ContainsFold predicate on the "action_name" field.
func ActionNameEQ ¶
ActionNameEQ applies the EQ predicate on the "action_name" field.
func ActionNameEqualFold ¶
ActionNameEqualFold applies the EqualFold predicate on the "action_name" field.
func ActionNameGT ¶
ActionNameGT applies the GT predicate on the "action_name" field.
func ActionNameGTE ¶
ActionNameGTE applies the GTE predicate on the "action_name" field.
func ActionNameHasPrefix ¶
ActionNameHasPrefix applies the HasPrefix predicate on the "action_name" field.
func ActionNameHasSuffix ¶
ActionNameHasSuffix applies the HasSuffix predicate on the "action_name" field.
func ActionNameIn ¶
ActionNameIn applies the In predicate on the "action_name" field.
func ActionNameLT ¶
ActionNameLT applies the LT predicate on the "action_name" field.
func ActionNameLTE ¶
ActionNameLTE applies the LTE predicate on the "action_name" field.
func ActionNameNEQ ¶
ActionNameNEQ applies the NEQ predicate on the "action_name" field.
func ActionNameNotIn ¶
ActionNameNotIn applies the NotIn predicate on the "action_name" field.
func CompletedAt ¶
CompletedAt applies equality check predicate on the "completed_at" field. It's identical to CompletedAtEQ.
func CompletedAtEQ ¶
CompletedAtEQ applies the EQ predicate on the "completed_at" field.
func CompletedAtGT ¶
CompletedAtGT applies the GT predicate on the "completed_at" field.
func CompletedAtGTE ¶
CompletedAtGTE applies the GTE predicate on the "completed_at" field.
func CompletedAtIn ¶
CompletedAtIn applies the In predicate on the "completed_at" field.
func CompletedAtIsNil ¶
CompletedAtIsNil applies the IsNil predicate on the "completed_at" field.
func CompletedAtLT ¶
CompletedAtLT applies the LT predicate on the "completed_at" field.
func CompletedAtLTE ¶
CompletedAtLTE applies the LTE predicate on the "completed_at" field.
func CompletedAtNEQ ¶
CompletedAtNEQ applies the NEQ predicate on the "completed_at" field.
func CompletedAtNotIn ¶
CompletedAtNotIn applies the NotIn predicate on the "completed_at" field.
func CompletedAtNotNil ¶
CompletedAtNotNil applies the NotNil predicate on the "completed_at" field.
func EffectsIsNil ¶
EffectsIsNil applies the IsNil predicate on the "effects" field.
func EffectsNotNil ¶
EffectsNotNil applies the NotNil predicate on the "effects" field.
func ErrorMessage ¶
ErrorMessage applies equality check predicate on the "error_message" field. It's identical to ErrorMessageEQ.
func ErrorMessageContains ¶
ErrorMessageContains applies the Contains predicate on the "error_message" field.
func ErrorMessageContainsFold ¶
ErrorMessageContainsFold applies the ContainsFold predicate on the "error_message" field.
func ErrorMessageEQ ¶
ErrorMessageEQ applies the EQ predicate on the "error_message" field.
func ErrorMessageEqualFold ¶
ErrorMessageEqualFold applies the EqualFold predicate on the "error_message" field.
func ErrorMessageGT ¶
ErrorMessageGT applies the GT predicate on the "error_message" field.
func ErrorMessageGTE ¶
ErrorMessageGTE applies the GTE predicate on the "error_message" field.
func ErrorMessageHasPrefix ¶
ErrorMessageHasPrefix applies the HasPrefix predicate on the "error_message" field.
func ErrorMessageHasSuffix ¶
ErrorMessageHasSuffix applies the HasSuffix predicate on the "error_message" field.
func ErrorMessageIn ¶
ErrorMessageIn applies the In predicate on the "error_message" field.
func ErrorMessageIsNil ¶
ErrorMessageIsNil applies the IsNil predicate on the "error_message" field.
func ErrorMessageLT ¶
ErrorMessageLT applies the LT predicate on the "error_message" field.
func ErrorMessageLTE ¶
ErrorMessageLTE applies the LTE predicate on the "error_message" field.
func ErrorMessageNEQ ¶
ErrorMessageNEQ applies the NEQ predicate on the "error_message" field.
func ErrorMessageNotIn ¶
ErrorMessageNotIn applies the NotIn predicate on the "error_message" field.
func ErrorMessageNotNil ¶
ErrorMessageNotNil applies the NotNil predicate on the "error_message" field.
func ParamsIsNil ¶
ParamsIsNil applies the IsNil predicate on the "params" field.
func ParamsNotNil ¶
ParamsNotNil applies the NotNil predicate on the "params" field.
func Principal ¶
Principal applies equality check predicate on the "principal" field. It's identical to PrincipalEQ.
func PrincipalContains ¶
PrincipalContains applies the Contains predicate on the "principal" field.
func PrincipalContainsFold ¶
PrincipalContainsFold applies the ContainsFold predicate on the "principal" field.
func PrincipalEQ ¶
PrincipalEQ applies the EQ predicate on the "principal" field.
func PrincipalEqualFold ¶
PrincipalEqualFold applies the EqualFold predicate on the "principal" field.
func PrincipalGT ¶
PrincipalGT applies the GT predicate on the "principal" field.
func PrincipalGTE ¶
PrincipalGTE applies the GTE predicate on the "principal" field.
func PrincipalHasPrefix ¶
PrincipalHasPrefix applies the HasPrefix predicate on the "principal" field.
func PrincipalHasSuffix ¶
PrincipalHasSuffix applies the HasSuffix predicate on the "principal" field.
func PrincipalIn ¶
PrincipalIn applies the In predicate on the "principal" field.
func PrincipalLT ¶
PrincipalLT applies the LT predicate on the "principal" field.
func PrincipalLTE ¶
PrincipalLTE applies the LTE predicate on the "principal" field.
func PrincipalNEQ ¶
PrincipalNEQ applies the NEQ predicate on the "principal" field.
func PrincipalNotIn ¶
PrincipalNotIn applies the NotIn predicate on the "principal" field.
func StartedAt ¶
StartedAt applies equality check predicate on the "started_at" field. It's identical to StartedAtEQ.
func StartedAtEQ ¶
StartedAtEQ applies the EQ predicate on the "started_at" field.
func StartedAtGT ¶
StartedAtGT applies the GT predicate on the "started_at" field.
func StartedAtGTE ¶
StartedAtGTE applies the GTE predicate on the "started_at" field.
func StartedAtIn ¶
StartedAtIn applies the In predicate on the "started_at" field.
func StartedAtLT ¶
StartedAtLT applies the LT predicate on the "started_at" field.
func StartedAtLTE ¶
StartedAtLTE applies the LTE predicate on the "started_at" field.
func StartedAtNEQ ¶
StartedAtNEQ applies the NEQ predicate on the "started_at" field.
func StartedAtNotIn ¶
StartedAtNotIn applies the NotIn predicate on the "started_at" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
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 ActionLog queries.
func ByActionName ¶
func ByActionName(opts ...sql.OrderTermOption) OrderOption
ByActionName orders the results by the action_name field.
func ByCompletedAt ¶
func ByCompletedAt(opts ...sql.OrderTermOption) OrderOption
ByCompletedAt orders the results by the completed_at field.
func ByErrorMessage ¶
func ByErrorMessage(opts ...sql.OrderTermOption) OrderOption
ByErrorMessage orders the results by the error_message field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPrincipal ¶
func ByPrincipal(opts ...sql.OrderTermOption) OrderOption
ByPrincipal orders the results by the principal field.
func ByStartedAt ¶
func ByStartedAt(opts ...sql.OrderTermOption) OrderOption
ByStartedAt orders the results by the started_at field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.