usersetting

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the usersetting type in the database.
	Label = "user_setting"
	// 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"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldLocked holds the string denoting the locked field in the database.
	FieldLocked = "locked"
	// FieldSilencedAt holds the string denoting the silenced_at field in the database.
	FieldSilencedAt = "silenced_at"
	// FieldSuspendedAt holds the string denoting the suspended_at field in the database.
	FieldSuspendedAt = "suspended_at"
	// FieldRecoveryCode holds the string denoting the recovery_code field in the database.
	FieldRecoveryCode = "recovery_code"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldRole holds the string denoting the role field in the database.
	FieldRole = "role"
	// FieldPermissions holds the string denoting the permissions field in the database.
	FieldPermissions = "permissions"
	// FieldEmailConfirmed holds the string denoting the email_confirmed field in the database.
	FieldEmailConfirmed = "email_confirmed"
	// FieldTags holds the string denoting the tags field in the database.
	FieldTags = "tags"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the usersetting in the database.
	Table = "user_settings"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "user_settings"
	// 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_setting"
)
View Source
const DefaultRole = RoleUser

RoleUser is the default value of the Role enum.

View Source
const DefaultStatus = StatusActive

StatusActive is the default value of the Status enum.

Variables

View Source
var (
	Hooks [1]ent.Hook
	// 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
	// DefaultLocked holds the default value on creation for the "locked" field.
	DefaultLocked bool
	// DefaultPermissions holds the default value on creation for the "permissions" field.
	DefaultPermissions []string
	// DefaultEmailConfirmed holds the default value on creation for the "email_confirmed" field.
	DefaultEmailConfirmed bool
	// DefaultTags holds the default value on creation for the "tags" field.
	DefaultTags []string
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/datumforge/datum/internal/ent/generated/runtime"

Columns holds all SQL columns for usersetting fields.

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

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

Functions

func And

func And(predicates ...predicate.UserSetting) predicate.UserSetting

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.UserSetting

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.UserSetting

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.UserSetting

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.UserSetting

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.UserSetting

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.UserSetting

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.UserSetting

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v string) predicate.UserSetting

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByContains

func CreatedByContains(v string) predicate.UserSetting

CreatedByContains applies the Contains predicate on the "created_by" field.

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.UserSetting

CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.

func CreatedByEQ

func CreatedByEQ(v string) predicate.UserSetting

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.UserSetting

CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v string) predicate.UserSetting

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v string) predicate.UserSetting

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.UserSetting

CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.UserSetting

CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...string) predicate.UserSetting

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.UserSetting

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v string) predicate.UserSetting

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v string) predicate.UserSetting

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.UserSetting

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...string) predicate.UserSetting

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.UserSetting

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func EmailConfirmed

func EmailConfirmed(v bool) predicate.UserSetting

EmailConfirmed applies equality check predicate on the "email_confirmed" field. It's identical to EmailConfirmedEQ.

func EmailConfirmedEQ

func EmailConfirmedEQ(v bool) predicate.UserSetting

EmailConfirmedEQ applies the EQ predicate on the "email_confirmed" field.

func EmailConfirmedNEQ

func EmailConfirmedNEQ(v bool) predicate.UserSetting

EmailConfirmedNEQ applies the NEQ predicate on the "email_confirmed" field.

func HasUser

func HasUser() predicate.UserSetting

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

func HasUserWith

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

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

func ID

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.UserSetting

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.UserSetting

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.UserSetting

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.UserSetting

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.UserSetting

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.UserSetting

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.UserSetting

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.UserSetting

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Locked

func Locked(v bool) predicate.UserSetting

Locked applies equality check predicate on the "locked" field. It's identical to LockedEQ.

func LockedEQ

func LockedEQ(v bool) predicate.UserSetting

LockedEQ applies the EQ predicate on the "locked" field.

func LockedNEQ

func LockedNEQ(v bool) predicate.UserSetting

LockedNEQ applies the NEQ predicate on the "locked" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.UserSetting) predicate.UserSetting

Or groups predicates with the OR operator between them.

func RecoveryCode

func RecoveryCode(v string) predicate.UserSetting

RecoveryCode applies equality check predicate on the "recovery_code" field. It's identical to RecoveryCodeEQ.

func RecoveryCodeContains

func RecoveryCodeContains(v string) predicate.UserSetting

RecoveryCodeContains applies the Contains predicate on the "recovery_code" field.

func RecoveryCodeContainsFold

func RecoveryCodeContainsFold(v string) predicate.UserSetting

RecoveryCodeContainsFold applies the ContainsFold predicate on the "recovery_code" field.

func RecoveryCodeEQ

func RecoveryCodeEQ(v string) predicate.UserSetting

RecoveryCodeEQ applies the EQ predicate on the "recovery_code" field.

func RecoveryCodeEqualFold

func RecoveryCodeEqualFold(v string) predicate.UserSetting

RecoveryCodeEqualFold applies the EqualFold predicate on the "recovery_code" field.

func RecoveryCodeGT

func RecoveryCodeGT(v string) predicate.UserSetting

RecoveryCodeGT applies the GT predicate on the "recovery_code" field.

func RecoveryCodeGTE

func RecoveryCodeGTE(v string) predicate.UserSetting

RecoveryCodeGTE applies the GTE predicate on the "recovery_code" field.

func RecoveryCodeHasPrefix

func RecoveryCodeHasPrefix(v string) predicate.UserSetting

RecoveryCodeHasPrefix applies the HasPrefix predicate on the "recovery_code" field.

func RecoveryCodeHasSuffix

func RecoveryCodeHasSuffix(v string) predicate.UserSetting

RecoveryCodeHasSuffix applies the HasSuffix predicate on the "recovery_code" field.

func RecoveryCodeIn

func RecoveryCodeIn(vs ...string) predicate.UserSetting

RecoveryCodeIn applies the In predicate on the "recovery_code" field.

func RecoveryCodeIsNil

func RecoveryCodeIsNil() predicate.UserSetting

RecoveryCodeIsNil applies the IsNil predicate on the "recovery_code" field.

func RecoveryCodeLT

func RecoveryCodeLT(v string) predicate.UserSetting

RecoveryCodeLT applies the LT predicate on the "recovery_code" field.

func RecoveryCodeLTE

func RecoveryCodeLTE(v string) predicate.UserSetting

RecoveryCodeLTE applies the LTE predicate on the "recovery_code" field.

func RecoveryCodeNEQ

func RecoveryCodeNEQ(v string) predicate.UserSetting

RecoveryCodeNEQ applies the NEQ predicate on the "recovery_code" field.

func RecoveryCodeNotIn

func RecoveryCodeNotIn(vs ...string) predicate.UserSetting

RecoveryCodeNotIn applies the NotIn predicate on the "recovery_code" field.

func RecoveryCodeNotNil

func RecoveryCodeNotNil() predicate.UserSetting

RecoveryCodeNotNil applies the NotNil predicate on the "recovery_code" field.

func RoleEQ

func RoleEQ(v Role) predicate.UserSetting

RoleEQ applies the EQ predicate on the "role" field.

func RoleIn

func RoleIn(vs ...Role) predicate.UserSetting

RoleIn applies the In predicate on the "role" field.

func RoleNEQ

func RoleNEQ(v Role) predicate.UserSetting

RoleNEQ applies the NEQ predicate on the "role" field.

func RoleNotIn

func RoleNotIn(vs ...Role) predicate.UserSetting

RoleNotIn applies the NotIn predicate on the "role" field.

func RoleValidator

func RoleValidator(r Role) error

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

func SilencedAt

func SilencedAt(v time.Time) predicate.UserSetting

SilencedAt applies equality check predicate on the "silenced_at" field. It's identical to SilencedAtEQ.

func SilencedAtEQ

func SilencedAtEQ(v time.Time) predicate.UserSetting

SilencedAtEQ applies the EQ predicate on the "silenced_at" field.

func SilencedAtGT

func SilencedAtGT(v time.Time) predicate.UserSetting

SilencedAtGT applies the GT predicate on the "silenced_at" field.

func SilencedAtGTE

func SilencedAtGTE(v time.Time) predicate.UserSetting

SilencedAtGTE applies the GTE predicate on the "silenced_at" field.

func SilencedAtIn

func SilencedAtIn(vs ...time.Time) predicate.UserSetting

SilencedAtIn applies the In predicate on the "silenced_at" field.

func SilencedAtIsNil

func SilencedAtIsNil() predicate.UserSetting

SilencedAtIsNil applies the IsNil predicate on the "silenced_at" field.

func SilencedAtLT

func SilencedAtLT(v time.Time) predicate.UserSetting

SilencedAtLT applies the LT predicate on the "silenced_at" field.

func SilencedAtLTE

func SilencedAtLTE(v time.Time) predicate.UserSetting

SilencedAtLTE applies the LTE predicate on the "silenced_at" field.

func SilencedAtNEQ

func SilencedAtNEQ(v time.Time) predicate.UserSetting

SilencedAtNEQ applies the NEQ predicate on the "silenced_at" field.

func SilencedAtNotIn

func SilencedAtNotIn(vs ...time.Time) predicate.UserSetting

SilencedAtNotIn applies the NotIn predicate on the "silenced_at" field.

func SilencedAtNotNil

func SilencedAtNotNil() predicate.UserSetting

SilencedAtNotNil applies the NotNil predicate on the "silenced_at" field.

func StatusEQ

func StatusEQ(v Status) predicate.UserSetting

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.UserSetting

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.UserSetting

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.UserSetting

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

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

func SuspendedAt

func SuspendedAt(v time.Time) predicate.UserSetting

SuspendedAt applies equality check predicate on the "suspended_at" field. It's identical to SuspendedAtEQ.

func SuspendedAtEQ

func SuspendedAtEQ(v time.Time) predicate.UserSetting

SuspendedAtEQ applies the EQ predicate on the "suspended_at" field.

func SuspendedAtGT

func SuspendedAtGT(v time.Time) predicate.UserSetting

SuspendedAtGT applies the GT predicate on the "suspended_at" field.

func SuspendedAtGTE

func SuspendedAtGTE(v time.Time) predicate.UserSetting

SuspendedAtGTE applies the GTE predicate on the "suspended_at" field.

func SuspendedAtIn

func SuspendedAtIn(vs ...time.Time) predicate.UserSetting

SuspendedAtIn applies the In predicate on the "suspended_at" field.

func SuspendedAtIsNil

func SuspendedAtIsNil() predicate.UserSetting

SuspendedAtIsNil applies the IsNil predicate on the "suspended_at" field.

func SuspendedAtLT

func SuspendedAtLT(v time.Time) predicate.UserSetting

SuspendedAtLT applies the LT predicate on the "suspended_at" field.

func SuspendedAtLTE

func SuspendedAtLTE(v time.Time) predicate.UserSetting

SuspendedAtLTE applies the LTE predicate on the "suspended_at" field.

func SuspendedAtNEQ

func SuspendedAtNEQ(v time.Time) predicate.UserSetting

SuspendedAtNEQ applies the NEQ predicate on the "suspended_at" field.

func SuspendedAtNotIn

func SuspendedAtNotIn(vs ...time.Time) predicate.UserSetting

SuspendedAtNotIn applies the NotIn predicate on the "suspended_at" field.

func SuspendedAtNotNil

func SuspendedAtNotNil() predicate.UserSetting

SuspendedAtNotNil applies the NotNil predicate on the "suspended_at" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.UserSetting

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.UserSetting

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.UserSetting

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.UserSetting

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.UserSetting

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.UserSetting

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.UserSetting

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

func UpdatedAtNotIn

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

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

func UpdatedBy

func UpdatedBy(v string) predicate.UserSetting

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByContains

func UpdatedByContains(v string) predicate.UserSetting

UpdatedByContains applies the Contains predicate on the "updated_by" field.

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.UserSetting

UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.UserSetting

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.UserSetting

UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v string) predicate.UserSetting

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.UserSetting

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.UserSetting

UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.UserSetting

UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...string) predicate.UserSetting

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.UserSetting

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v string) predicate.UserSetting

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.UserSetting

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.UserSetting

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...string) predicate.UserSetting

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.UserSetting

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

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

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByEmailConfirmed

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

ByEmailConfirmed orders the results by the email_confirmed field.

func ByID

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

ByID orders the results by the id field.

func ByLocked

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

ByLocked orders the results by the locked field.

func ByRecoveryCode

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

ByRecoveryCode orders the results by the recovery_code field.

func ByRole

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

ByRole orders the results by the role field.

func BySilencedAt

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

BySilencedAt orders the results by the silenced_at field.

func ByStatus

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

ByStatus orders the results by the status field.

func BySuspendedAt

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

BySuspendedAt orders the results by the suspended_at field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

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

ByUpdatedBy orders the results by the updated_by field.

func ByUserField

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

ByUserField orders the results by user field.

type Role

type Role string

Role defines the type for the "role" enum field.

const (
	RoleUser  Role = "USER"
	RoleAdmin Role = "ADMIN"
	RoleOwner Role = "OWNER"
)

Role values.

func (Role) MarshalGQL

func (e Role) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Role) String

func (r Role) String() string

func (*Role) UnmarshalGQL

func (e *Role) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusActive      Status = "ACTIVE"
	StatusInactive    Status = "INACTIVE"
	StatusDeactivated Status = "DEACTIVATED"
	StatusSuspended   Status = "SUSPENDED"
)

Status values.

func (Status) MarshalGQL

func (e Status) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Status) String

func (s Status) String() string

func (*Status) UnmarshalGQL

func (e *Status) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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