usersettings

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the usersettings type in the database.
	Label = "user_settings"
	// 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 usersettings 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 usersettings 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.UserSettings) predicate.UserSettings

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.UserSettings

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.UserSettings

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.UserSettings

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.UserSettings

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.UserSettings

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.UserSettings

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.UserSettings

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v string) predicate.UserSettings

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

func CreatedByContains

func CreatedByContains(v string) predicate.UserSettings

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

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.UserSettings

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

func CreatedByEQ

func CreatedByEQ(v string) predicate.UserSettings

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

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.UserSettings

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

func CreatedByGT

func CreatedByGT(v string) predicate.UserSettings

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

func CreatedByGTE

func CreatedByGTE(v string) predicate.UserSettings

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

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.UserSettings

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

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.UserSettings

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

func CreatedByIn

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

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

func CreatedByIsNil

func CreatedByIsNil() predicate.UserSettings

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

func CreatedByLT

func CreatedByLT(v string) predicate.UserSettings

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

func CreatedByLTE

func CreatedByLTE(v string) predicate.UserSettings

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

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.UserSettings

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

func CreatedByNotIn

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

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

func CreatedByNotNil

func CreatedByNotNil() predicate.UserSettings

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

func EmailConfirmed

func EmailConfirmed(v bool) predicate.UserSettings

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

func EmailConfirmedEQ

func EmailConfirmedEQ(v bool) predicate.UserSettings

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

func EmailConfirmedNEQ

func EmailConfirmedNEQ(v bool) predicate.UserSettings

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

func HasUser

func HasUser() predicate.UserSettings

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

func HasUserWith

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

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.UserSettings

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.UserSettings

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.UserSettings

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.UserSettings

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.UserSettings

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.UserSettings

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.UserSettings

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.UserSettings

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Locked

func Locked(v bool) predicate.UserSettings

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

func LockedEQ

func LockedEQ(v bool) predicate.UserSettings

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

func LockedNEQ

func LockedNEQ(v bool) predicate.UserSettings

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.UserSettings) predicate.UserSettings

Or groups predicates with the OR operator between them.

func RecoveryCode

func RecoveryCode(v string) predicate.UserSettings

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

func RecoveryCodeContains

func RecoveryCodeContains(v string) predicate.UserSettings

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

func RecoveryCodeContainsFold

func RecoveryCodeContainsFold(v string) predicate.UserSettings

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

func RecoveryCodeEQ

func RecoveryCodeEQ(v string) predicate.UserSettings

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

func RecoveryCodeEqualFold

func RecoveryCodeEqualFold(v string) predicate.UserSettings

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

func RecoveryCodeGT

func RecoveryCodeGT(v string) predicate.UserSettings

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

func RecoveryCodeGTE

func RecoveryCodeGTE(v string) predicate.UserSettings

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

func RecoveryCodeHasPrefix

func RecoveryCodeHasPrefix(v string) predicate.UserSettings

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

func RecoveryCodeHasSuffix

func RecoveryCodeHasSuffix(v string) predicate.UserSettings

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

func RecoveryCodeIn

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

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

func RecoveryCodeIsNil

func RecoveryCodeIsNil() predicate.UserSettings

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

func RecoveryCodeLT

func RecoveryCodeLT(v string) predicate.UserSettings

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

func RecoveryCodeLTE

func RecoveryCodeLTE(v string) predicate.UserSettings

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

func RecoveryCodeNEQ

func RecoveryCodeNEQ(v string) predicate.UserSettings

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

func RecoveryCodeNotIn

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

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

func RecoveryCodeNotNil

func RecoveryCodeNotNil() predicate.UserSettings

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

func RoleEQ

func RoleEQ(v Role) predicate.UserSettings

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

func RoleIn

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

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

func RoleNEQ

func RoleNEQ(v Role) predicate.UserSettings

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

func RoleNotIn

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

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.UserSettings

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

func SilencedAtEQ

func SilencedAtEQ(v time.Time) predicate.UserSettings

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

func SilencedAtGT

func SilencedAtGT(v time.Time) predicate.UserSettings

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

func SilencedAtGTE

func SilencedAtGTE(v time.Time) predicate.UserSettings

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

func SilencedAtIn

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

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

func SilencedAtIsNil

func SilencedAtIsNil() predicate.UserSettings

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

func SilencedAtLT

func SilencedAtLT(v time.Time) predicate.UserSettings

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

func SilencedAtLTE

func SilencedAtLTE(v time.Time) predicate.UserSettings

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

func SilencedAtNEQ

func SilencedAtNEQ(v time.Time) predicate.UserSettings

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

func SilencedAtNotIn

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

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

func SilencedAtNotNil

func SilencedAtNotNil() predicate.UserSettings

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

func StatusEQ

func StatusEQ(v Status) predicate.UserSettings

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

func StatusIn

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

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

func StatusNEQ

func StatusNEQ(v Status) predicate.UserSettings

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

func StatusNotIn

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

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.UserSettings

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

func SuspendedAtEQ

func SuspendedAtEQ(v time.Time) predicate.UserSettings

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

func SuspendedAtGT

func SuspendedAtGT(v time.Time) predicate.UserSettings

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

func SuspendedAtGTE

func SuspendedAtGTE(v time.Time) predicate.UserSettings

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

func SuspendedAtIn

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

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

func SuspendedAtIsNil

func SuspendedAtIsNil() predicate.UserSettings

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

func SuspendedAtLT

func SuspendedAtLT(v time.Time) predicate.UserSettings

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

func SuspendedAtLTE

func SuspendedAtLTE(v time.Time) predicate.UserSettings

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

func SuspendedAtNEQ

func SuspendedAtNEQ(v time.Time) predicate.UserSettings

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

func SuspendedAtNotIn

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

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

func SuspendedAtNotNil

func SuspendedAtNotNil() predicate.UserSettings

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.UserSettings

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.UserSettings

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.UserSettings

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.UserSettings

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.UserSettings

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.UserSettings

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.UserSettings

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

func UpdatedAtNotIn

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

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

func UpdatedBy

func UpdatedBy(v string) predicate.UserSettings

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

func UpdatedByContains

func UpdatedByContains(v string) predicate.UserSettings

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

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.UserSettings

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

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.UserSettings

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

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.UserSettings

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

func UpdatedByGT

func UpdatedByGT(v string) predicate.UserSettings

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

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.UserSettings

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

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.UserSettings

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

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.UserSettings

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

func UpdatedByIn

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

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

func UpdatedByIsNil

func UpdatedByIsNil() predicate.UserSettings

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

func UpdatedByLT

func UpdatedByLT(v string) predicate.UserSettings

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

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.UserSettings

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

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.UserSettings

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

func UpdatedByNotIn

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

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

func UpdatedByNotNil

func UpdatedByNotNil() predicate.UserSettings

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 UserSettings 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