Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.App) predicate.App
- func AppKey(v string) predicate.App
- func AppKeyContains(v string) predicate.App
- func AppKeyContainsFold(v string) predicate.App
- func AppKeyEQ(v string) predicate.App
- func AppKeyEqualFold(v string) predicate.App
- func AppKeyGT(v string) predicate.App
- func AppKeyGTE(v string) predicate.App
- func AppKeyHasPrefix(v string) predicate.App
- func AppKeyHasSuffix(v string) predicate.App
- func AppKeyIn(vs ...string) predicate.App
- func AppKeyIsNil() predicate.App
- func AppKeyLT(v string) predicate.App
- func AppKeyLTE(v string) predicate.App
- func AppKeyNEQ(v string) predicate.App
- func AppKeyNotIn(vs ...string) predicate.App
- func AppKeyNotNil() predicate.App
- func AppSecret(v string) predicate.App
- func AppSecretContains(v string) predicate.App
- func AppSecretContainsFold(v string) predicate.App
- func AppSecretEQ(v string) predicate.App
- func AppSecretEqualFold(v string) predicate.App
- func AppSecretGT(v string) predicate.App
- func AppSecretGTE(v string) predicate.App
- func AppSecretHasPrefix(v string) predicate.App
- func AppSecretHasSuffix(v string) predicate.App
- func AppSecretIn(vs ...string) predicate.App
- func AppSecretIsNil() predicate.App
- func AppSecretLT(v string) predicate.App
- func AppSecretLTE(v string) predicate.App
- func AppSecretNEQ(v string) predicate.App
- func AppSecretNotIn(vs ...string) predicate.App
- func AppSecretNotNil() predicate.App
- func Code(v string) predicate.App
- func CodeContains(v string) predicate.App
- func CodeContainsFold(v string) predicate.App
- func CodeEQ(v string) predicate.App
- func CodeEqualFold(v string) predicate.App
- func CodeGT(v string) predicate.App
- func CodeGTE(v string) predicate.App
- func CodeHasPrefix(v string) predicate.App
- func CodeHasSuffix(v string) predicate.App
- func CodeIn(vs ...string) predicate.App
- func CodeLT(v string) predicate.App
- func CodeLTE(v string) predicate.App
- func CodeNEQ(v string) predicate.App
- func CodeNotIn(vs ...string) predicate.App
- func Comments(v string) predicate.App
- func CommentsContains(v string) predicate.App
- func CommentsContainsFold(v string) predicate.App
- func CommentsEQ(v string) predicate.App
- func CommentsEqualFold(v string) predicate.App
- func CommentsGT(v string) predicate.App
- func CommentsGTE(v string) predicate.App
- func CommentsHasPrefix(v string) predicate.App
- func CommentsHasSuffix(v string) predicate.App
- func CommentsIn(vs ...string) predicate.App
- func CommentsIsNil() predicate.App
- func CommentsLT(v string) predicate.App
- func CommentsLTE(v string) predicate.App
- func CommentsNEQ(v string) predicate.App
- func CommentsNotIn(vs ...string) predicate.App
- func CommentsNotNil() predicate.App
- func CreatedAt(v time.Time) predicate.App
- func CreatedAtEQ(v time.Time) predicate.App
- func CreatedAtGT(v time.Time) predicate.App
- func CreatedAtGTE(v time.Time) predicate.App
- func CreatedAtIn(vs ...time.Time) predicate.App
- func CreatedAtLT(v time.Time) predicate.App
- func CreatedAtLTE(v time.Time) predicate.App
- func CreatedAtNEQ(v time.Time) predicate.App
- func CreatedAtNotIn(vs ...time.Time) predicate.App
- func CreatedBy(v int) predicate.App
- func CreatedByEQ(v int) predicate.App
- func CreatedByGT(v int) predicate.App
- func CreatedByGTE(v int) predicate.App
- func CreatedByIn(vs ...int) predicate.App
- func CreatedByLT(v int) predicate.App
- func CreatedByLTE(v int) predicate.App
- func CreatedByNEQ(v int) predicate.App
- func CreatedByNotIn(vs ...int) predicate.App
- func HasActions() predicate.App
- func HasActionsWith(preds ...predicate.AppAction) predicate.App
- func HasDicts() predicate.App
- func HasDictsWith(preds ...predicate.AppDict) predicate.App
- func HasMenus() predicate.App
- func HasMenusWith(preds ...predicate.AppMenu) predicate.App
- func HasOrgApp() predicate.App
- func HasOrgAppWith(preds ...predicate.OrgApp) predicate.App
- func HasOrgs() predicate.App
- func HasOrgsWith(preds ...predicate.Org) predicate.App
- func HasPolicies() predicate.App
- func HasPoliciesWith(preds ...predicate.AppPolicy) predicate.App
- func HasResources() predicate.App
- func HasResourcesWith(preds ...predicate.AppRes) predicate.App
- func HasRoles() predicate.App
- func HasRolesWith(preds ...predicate.AppRole) predicate.App
- func ID(id int) predicate.App
- func IDEQ(id int) predicate.App
- func IDGT(id int) predicate.App
- func IDGTE(id int) predicate.App
- func IDIn(ids ...int) predicate.App
- func IDLT(id int) predicate.App
- func IDLTE(id int) predicate.App
- func IDNEQ(id int) predicate.App
- func IDNotIn(ids ...int) predicate.App
- func KindEQ(v Kind) predicate.App
- func KindIn(vs ...Kind) predicate.App
- func KindNEQ(v Kind) predicate.App
- func KindNotIn(vs ...Kind) predicate.App
- func KindValidator(k Kind) error
- func Logo(v string) predicate.App
- func LogoContains(v string) predicate.App
- func LogoContainsFold(v string) predicate.App
- func LogoEQ(v string) predicate.App
- func LogoEqualFold(v string) predicate.App
- func LogoGT(v string) predicate.App
- func LogoGTE(v string) predicate.App
- func LogoHasPrefix(v string) predicate.App
- func LogoHasSuffix(v string) predicate.App
- func LogoIn(vs ...string) predicate.App
- func LogoIsNil() predicate.App
- func LogoLT(v string) predicate.App
- func LogoLTE(v string) predicate.App
- func LogoNEQ(v string) predicate.App
- func LogoNotIn(vs ...string) predicate.App
- func LogoNotNil() predicate.App
- func Name(v string) predicate.App
- func NameContains(v string) predicate.App
- func NameContainsFold(v string) predicate.App
- func NameEQ(v string) predicate.App
- func NameEqualFold(v string) predicate.App
- func NameGT(v string) predicate.App
- func NameGTE(v string) predicate.App
- func NameHasPrefix(v string) predicate.App
- func NameHasSuffix(v string) predicate.App
- func NameIn(vs ...string) predicate.App
- func NameLT(v string) predicate.App
- func NameLTE(v string) predicate.App
- func NameNEQ(v string) predicate.App
- func NameNotIn(vs ...string) predicate.App
- func Not(p predicate.App) predicate.App
- func Or(predicates ...predicate.App) predicate.App
- func OwnerOrgID(v int) predicate.App
- func OwnerOrgIDEQ(v int) predicate.App
- func OwnerOrgIDGT(v int) predicate.App
- func OwnerOrgIDGTE(v int) predicate.App
- func OwnerOrgIDIn(vs ...int) predicate.App
- func OwnerOrgIDIsNil() predicate.App
- func OwnerOrgIDLT(v int) predicate.App
- func OwnerOrgIDLTE(v int) predicate.App
- func OwnerOrgIDNEQ(v int) predicate.App
- func OwnerOrgIDNotIn(vs ...int) predicate.App
- func OwnerOrgIDNotNil() predicate.App
- func Private(v bool) predicate.App
- func PrivateEQ(v bool) predicate.App
- func PrivateIsNil() predicate.App
- func PrivateNEQ(v bool) predicate.App
- func PrivateNotNil() predicate.App
- func RedirectURI(v string) predicate.App
- func RedirectURIContains(v string) predicate.App
- func RedirectURIContainsFold(v string) predicate.App
- func RedirectURIEQ(v string) predicate.App
- func RedirectURIEqualFold(v string) predicate.App
- func RedirectURIGT(v string) predicate.App
- func RedirectURIGTE(v string) predicate.App
- func RedirectURIHasPrefix(v string) predicate.App
- func RedirectURIHasSuffix(v string) predicate.App
- func RedirectURIIn(vs ...string) predicate.App
- func RedirectURIIsNil() predicate.App
- func RedirectURILT(v string) predicate.App
- func RedirectURILTE(v string) predicate.App
- func RedirectURINEQ(v string) predicate.App
- func RedirectURINotIn(vs ...string) predicate.App
- func RedirectURINotNil() predicate.App
- func RefreshTokenValidity(v int32) predicate.App
- func RefreshTokenValidityEQ(v int32) predicate.App
- func RefreshTokenValidityGT(v int32) predicate.App
- func RefreshTokenValidityGTE(v int32) predicate.App
- func RefreshTokenValidityIn(vs ...int32) predicate.App
- func RefreshTokenValidityIsNil() predicate.App
- func RefreshTokenValidityLT(v int32) predicate.App
- func RefreshTokenValidityLTE(v int32) predicate.App
- func RefreshTokenValidityNEQ(v int32) predicate.App
- func RefreshTokenValidityNotIn(vs ...int32) predicate.App
- func RefreshTokenValidityNotNil() predicate.App
- func Scopes(v string) predicate.App
- func ScopesContains(v string) predicate.App
- func ScopesContainsFold(v string) predicate.App
- func ScopesEQ(v string) predicate.App
- func ScopesEqualFold(v string) predicate.App
- func ScopesGT(v string) predicate.App
- func ScopesGTE(v string) predicate.App
- func ScopesHasPrefix(v string) predicate.App
- func ScopesHasSuffix(v string) predicate.App
- func ScopesIn(vs ...string) predicate.App
- func ScopesIsNil() predicate.App
- func ScopesLT(v string) predicate.App
- func ScopesLTE(v string) predicate.App
- func ScopesNEQ(v string) predicate.App
- func ScopesNotIn(vs ...string) predicate.App
- func ScopesNotNil() predicate.App
- func StatusEQ(v typex.SimpleStatus) predicate.App
- func StatusIn(vs ...typex.SimpleStatus) predicate.App
- func StatusIsNil() predicate.App
- func StatusNEQ(v typex.SimpleStatus) predicate.App
- func StatusNotIn(vs ...typex.SimpleStatus) predicate.App
- func StatusNotNil() predicate.App
- func StatusValidator(s typex.SimpleStatus) error
- func TokenValidity(v int32) predicate.App
- func TokenValidityEQ(v int32) predicate.App
- func TokenValidityGT(v int32) predicate.App
- func TokenValidityGTE(v int32) predicate.App
- func TokenValidityIn(vs ...int32) predicate.App
- func TokenValidityIsNil() predicate.App
- func TokenValidityLT(v int32) predicate.App
- func TokenValidityLTE(v int32) predicate.App
- func TokenValidityNEQ(v int32) predicate.App
- func TokenValidityNotIn(vs ...int32) predicate.App
- func TokenValidityNotNil() predicate.App
- func UpdatedAt(v time.Time) predicate.App
- func UpdatedAtEQ(v time.Time) predicate.App
- func UpdatedAtGT(v time.Time) predicate.App
- func UpdatedAtGTE(v time.Time) predicate.App
- func UpdatedAtIn(vs ...time.Time) predicate.App
- func UpdatedAtIsNil() predicate.App
- func UpdatedAtLT(v time.Time) predicate.App
- func UpdatedAtLTE(v time.Time) predicate.App
- func UpdatedAtNEQ(v time.Time) predicate.App
- func UpdatedAtNotIn(vs ...time.Time) predicate.App
- func UpdatedAtNotNil() predicate.App
- func UpdatedBy(v int) predicate.App
- func UpdatedByEQ(v int) predicate.App
- func UpdatedByGT(v int) predicate.App
- func UpdatedByGTE(v int) predicate.App
- func UpdatedByIn(vs ...int) predicate.App
- func UpdatedByIsNil() predicate.App
- func UpdatedByLT(v int) predicate.App
- func UpdatedByLTE(v int) predicate.App
- func UpdatedByNEQ(v int) predicate.App
- func UpdatedByNotIn(vs ...int) predicate.App
- func UpdatedByNotNil() predicate.App
- func ValidColumn(column string) bool
- type Kind
- type OrderOption
- func ByActions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByActionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByAppKey(opts ...sql.OrderTermOption) OrderOption
- func ByAppSecret(opts ...sql.OrderTermOption) OrderOption
- func ByCode(opts ...sql.OrderTermOption) OrderOption
- func ByComments(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDicts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDictsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKind(opts ...sql.OrderTermOption) OrderOption
- func ByLogo(opts ...sql.OrderTermOption) OrderOption
- func ByMenus(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMenusCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOrgApp(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOrgAppCount(opts ...sql.OrderTermOption) OrderOption
- func ByOrgs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOrgsCount(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerOrgID(opts ...sql.OrderTermOption) OrderOption
- func ByPolicies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPoliciesCount(opts ...sql.OrderTermOption) OrderOption
- func ByPrivate(opts ...sql.OrderTermOption) OrderOption
- func ByRedirectURI(opts ...sql.OrderTermOption) OrderOption
- func ByRefreshTokenValidity(opts ...sql.OrderTermOption) OrderOption
- func ByResources(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByResourcesCount(opts ...sql.OrderTermOption) OrderOption
- func ByRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRolesCount(opts ...sql.OrderTermOption) OrderOption
- func ByScopes(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTokenValidity(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the app type in the database. Label = "app" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldKind holds the string denoting the kind field in the database. FieldKind = "kind" // FieldRedirectURI holds the string denoting the redirect_uri field in the database. FieldRedirectURI = "redirect_uri" // FieldAppKey holds the string denoting the app_key field in the database. FieldAppKey = "app_key" // FieldAppSecret holds the string denoting the app_secret field in the database. FieldAppSecret = "app_secret" // FieldScopes holds the string denoting the scopes field in the database. FieldScopes = "scopes" // FieldTokenValidity holds the string denoting the token_validity field in the database. FieldTokenValidity = "token_validity" // FieldRefreshTokenValidity holds the string denoting the refresh_token_validity field in the database. FieldRefreshTokenValidity = "refresh_token_validity" // FieldLogo holds the string denoting the logo field in the database. FieldLogo = "logo" // FieldComments holds the string denoting the comments field in the database. FieldComments = "comments" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldPrivate holds the string denoting the private field in the database. FieldPrivate = "private" // FieldOwnerOrgID holds the string denoting the owner_org_id field in the database. FieldOwnerOrgID = "owner_org_id" // EdgeMenus holds the string denoting the menus edge name in mutations. EdgeMenus = "menus" // EdgeActions holds the string denoting the actions edge name in mutations. EdgeActions = "actions" // EdgeResources holds the string denoting the resources edge name in mutations. EdgeResources = "resources" // EdgeRoles holds the string denoting the roles edge name in mutations. EdgeRoles = "roles" // EdgePolicies holds the string denoting the policies edge name in mutations. EdgePolicies = "policies" // EdgeOrgs holds the string denoting the orgs edge name in mutations. EdgeOrgs = "orgs" // EdgeDicts holds the string denoting the dicts edge name in mutations. EdgeDicts = "dicts" // EdgeOrgApp holds the string denoting the org_app edge name in mutations. EdgeOrgApp = "org_app" // Table holds the table name of the app in the database. Table = "app" // MenusTable is the table that holds the menus relation/edge. MenusTable = "app_menu" // MenusInverseTable is the table name for the AppMenu entity. // It exists in this package in order to avoid circular dependency with the "appmenu" package. MenusInverseTable = "app_menu" // MenusColumn is the table column denoting the menus relation/edge. MenusColumn = "app_id" // ActionsTable is the table that holds the actions relation/edge. ActionsTable = "app_action" // ActionsInverseTable is the table name for the AppAction entity. // It exists in this package in order to avoid circular dependency with the "appaction" package. ActionsInverseTable = "app_action" // ActionsColumn is the table column denoting the actions relation/edge. ActionsColumn = "app_id" // ResourcesTable is the table that holds the resources relation/edge. ResourcesTable = "app_res" // ResourcesInverseTable is the table name for the AppRes entity. // It exists in this package in order to avoid circular dependency with the "appres" package. ResourcesInverseTable = "app_res" // ResourcesColumn is the table column denoting the resources relation/edge. ResourcesColumn = "app_id" // RolesTable is the table that holds the roles relation/edge. RolesTable = "app_role" // RolesInverseTable is the table name for the AppRole entity. // It exists in this package in order to avoid circular dependency with the "approle" package. RolesInverseTable = "app_role" // RolesColumn is the table column denoting the roles relation/edge. RolesColumn = "app_id" // PoliciesTable is the table that holds the policies relation/edge. PoliciesTable = "app_policy" // PoliciesInverseTable is the table name for the AppPolicy entity. // It exists in this package in order to avoid circular dependency with the "apppolicy" package. PoliciesInverseTable = "app_policy" // PoliciesColumn is the table column denoting the policies relation/edge. PoliciesColumn = "app_id" // OrgsTable is the table that holds the orgs relation/edge. The primary key declared below. OrgsTable = "org_app" // OrgsInverseTable is the table name for the Org entity. // It exists in this package in order to avoid circular dependency with the "org" package. OrgsInverseTable = "org" // DictsTable is the table that holds the dicts relation/edge. DictsTable = "app_dict" // DictsInverseTable is the table name for the AppDict entity. // It exists in this package in order to avoid circular dependency with the "appdict" package. DictsInverseTable = "app_dict" // DictsColumn is the table column denoting the dicts relation/edge. DictsColumn = "app_id" // OrgAppTable is the table that holds the org_app relation/edge. OrgAppTable = "org_app" // OrgAppInverseTable is the table name for the OrgApp entity. // It exists in this package in order to avoid circular dependency with the "orgapp" package. OrgAppInverseTable = "org_app" // OrgAppColumn is the table column denoting the org_app relation/edge. OrgAppColumn = "app_id" )
const DefaultStatus typex.SimpleStatus = "active"
Variables ¶
var ( Hooks [3]ent.Hook // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // CodeValidator is a validator for the "code" field. It is called by the builders before save. CodeValidator func(string) error // RedirectURIValidator is a validator for the "redirect_uri" field. It is called by the builders before save. RedirectURIValidator func(string) error // AppSecretValidator is a validator for the "app_secret" field. It is called by the builders before save. AppSecretValidator func(string) error // ScopesValidator is a validator for the "scopes" field. It is called by the builders before save. ScopesValidator func(string) error // LogoValidator is a validator for the "logo" field. It is called by the builders before save. LogoValidator func(string) error // DefaultPrivate holds the default value on creation for the "private" field. DefaultPrivate bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() int )
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/woocoos/knockout/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedBy, FieldCreatedAt, FieldUpdatedBy, FieldUpdatedAt, FieldName, FieldCode, FieldKind, FieldRedirectURI, FieldAppKey, FieldAppSecret, FieldScopes, FieldTokenValidity, FieldRefreshTokenValidity, FieldLogo, FieldComments, FieldStatus, FieldPrivate, FieldOwnerOrgID, }
Columns holds all SQL columns for app fields.
var ( // OrgsPrimaryKey and OrgsColumn2 are the table columns denoting the // primary key for the orgs relation (M2M). OrgsPrimaryKey = []string{"org_id", "app_id"} )
Functions ¶
func AppKey ¶
AppKey applies equality check predicate on the "app_key" field. It's identical to AppKeyEQ.
func AppKeyContains ¶
AppKeyContains applies the Contains predicate on the "app_key" field.
func AppKeyContainsFold ¶
AppKeyContainsFold applies the ContainsFold predicate on the "app_key" field.
func AppKeyEqualFold ¶
AppKeyEqualFold applies the EqualFold predicate on the "app_key" field.
func AppKeyHasPrefix ¶
AppKeyHasPrefix applies the HasPrefix predicate on the "app_key" field.
func AppKeyHasSuffix ¶
AppKeyHasSuffix applies the HasSuffix predicate on the "app_key" field.
func AppKeyIsNil ¶
AppKeyIsNil applies the IsNil predicate on the "app_key" field.
func AppKeyNotIn ¶
AppKeyNotIn applies the NotIn predicate on the "app_key" field.
func AppKeyNotNil ¶
AppKeyNotNil applies the NotNil predicate on the "app_key" field.
func AppSecret ¶
AppSecret applies equality check predicate on the "app_secret" field. It's identical to AppSecretEQ.
func AppSecretContains ¶
AppSecretContains applies the Contains predicate on the "app_secret" field.
func AppSecretContainsFold ¶
AppSecretContainsFold applies the ContainsFold predicate on the "app_secret" field.
func AppSecretEQ ¶
AppSecretEQ applies the EQ predicate on the "app_secret" field.
func AppSecretEqualFold ¶
AppSecretEqualFold applies the EqualFold predicate on the "app_secret" field.
func AppSecretGT ¶
AppSecretGT applies the GT predicate on the "app_secret" field.
func AppSecretGTE ¶
AppSecretGTE applies the GTE predicate on the "app_secret" field.
func AppSecretHasPrefix ¶
AppSecretHasPrefix applies the HasPrefix predicate on the "app_secret" field.
func AppSecretHasSuffix ¶
AppSecretHasSuffix applies the HasSuffix predicate on the "app_secret" field.
func AppSecretIn ¶
AppSecretIn applies the In predicate on the "app_secret" field.
func AppSecretIsNil ¶
AppSecretIsNil applies the IsNil predicate on the "app_secret" field.
func AppSecretLT ¶
AppSecretLT applies the LT predicate on the "app_secret" field.
func AppSecretLTE ¶
AppSecretLTE applies the LTE predicate on the "app_secret" field.
func AppSecretNEQ ¶
AppSecretNEQ applies the NEQ predicate on the "app_secret" field.
func AppSecretNotIn ¶
AppSecretNotIn applies the NotIn predicate on the "app_secret" field.
func AppSecretNotNil ¶
AppSecretNotNil applies the NotNil predicate on the "app_secret" field.
func CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func Comments ¶
Comments applies equality check predicate on the "comments" field. It's identical to CommentsEQ.
func CommentsContains ¶
CommentsContains applies the Contains predicate on the "comments" field.
func CommentsContainsFold ¶
CommentsContainsFold applies the ContainsFold predicate on the "comments" field.
func CommentsEQ ¶
CommentsEQ applies the EQ predicate on the "comments" field.
func CommentsEqualFold ¶
CommentsEqualFold applies the EqualFold predicate on the "comments" field.
func CommentsGT ¶
CommentsGT applies the GT predicate on the "comments" field.
func CommentsGTE ¶
CommentsGTE applies the GTE predicate on the "comments" field.
func CommentsHasPrefix ¶
CommentsHasPrefix applies the HasPrefix predicate on the "comments" field.
func CommentsHasSuffix ¶
CommentsHasSuffix applies the HasSuffix predicate on the "comments" field.
func CommentsIn ¶
CommentsIn applies the In predicate on the "comments" field.
func CommentsIsNil ¶
CommentsIsNil applies the IsNil predicate on the "comments" field.
func CommentsLT ¶
CommentsLT applies the LT predicate on the "comments" field.
func CommentsLTE ¶
CommentsLTE applies the LTE predicate on the "comments" field.
func CommentsNEQ ¶
CommentsNEQ applies the NEQ predicate on the "comments" field.
func CommentsNotIn ¶
CommentsNotIn applies the NotIn predicate on the "comments" field.
func CommentsNotNil ¶
CommentsNotNil applies the NotNil predicate on the "comments" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func HasActions ¶
HasActions applies the HasEdge predicate on the "actions" edge.
func HasActionsWith ¶
HasActionsWith applies the HasEdge predicate on the "actions" edge with a given conditions (other predicates).
func HasDictsWith ¶
HasDictsWith applies the HasEdge predicate on the "dicts" edge with a given conditions (other predicates).
func HasMenusWith ¶
HasMenusWith applies the HasEdge predicate on the "menus" edge with a given conditions (other predicates).
func HasOrgAppWith ¶
HasOrgAppWith applies the HasEdge predicate on the "org_app" edge with a given conditions (other predicates).
func HasOrgsWith ¶
HasOrgsWith applies the HasEdge predicate on the "orgs" edge with a given conditions (other predicates).
func HasPolicies ¶
HasPolicies applies the HasEdge predicate on the "policies" edge.
func HasPoliciesWith ¶
HasPoliciesWith applies the HasEdge predicate on the "policies" edge with a given conditions (other predicates).
func HasResources ¶
HasResources applies the HasEdge predicate on the "resources" edge.
func HasResourcesWith ¶
HasResourcesWith applies the HasEdge predicate on the "resources" edge with a given conditions (other predicates).
func HasRolesWith ¶
HasRolesWith applies the HasEdge predicate on the "roles" edge with a given conditions (other predicates).
func KindValidator ¶
KindValidator is a validator for the "kind" field enum values. It is called by the builders before save.
func LogoContains ¶
LogoContains applies the Contains predicate on the "logo" field.
func LogoContainsFold ¶
LogoContainsFold applies the ContainsFold predicate on the "logo" field.
func LogoEqualFold ¶
LogoEqualFold applies the EqualFold predicate on the "logo" field.
func LogoHasPrefix ¶
LogoHasPrefix applies the HasPrefix predicate on the "logo" field.
func LogoHasSuffix ¶
LogoHasSuffix applies the HasSuffix predicate on the "logo" field.
func LogoNotNil ¶
LogoNotNil applies the NotNil predicate on the "logo" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func OwnerOrgID ¶
OwnerOrgID applies equality check predicate on the "owner_org_id" field. It's identical to OwnerOrgIDEQ.
func OwnerOrgIDEQ ¶
OwnerOrgIDEQ applies the EQ predicate on the "owner_org_id" field.
func OwnerOrgIDGT ¶
OwnerOrgIDGT applies the GT predicate on the "owner_org_id" field.
func OwnerOrgIDGTE ¶
OwnerOrgIDGTE applies the GTE predicate on the "owner_org_id" field.
func OwnerOrgIDIn ¶
OwnerOrgIDIn applies the In predicate on the "owner_org_id" field.
func OwnerOrgIDIsNil ¶
OwnerOrgIDIsNil applies the IsNil predicate on the "owner_org_id" field.
func OwnerOrgIDLT ¶
OwnerOrgIDLT applies the LT predicate on the "owner_org_id" field.
func OwnerOrgIDLTE ¶
OwnerOrgIDLTE applies the LTE predicate on the "owner_org_id" field.
func OwnerOrgIDNEQ ¶
OwnerOrgIDNEQ applies the NEQ predicate on the "owner_org_id" field.
func OwnerOrgIDNotIn ¶
OwnerOrgIDNotIn applies the NotIn predicate on the "owner_org_id" field.
func OwnerOrgIDNotNil ¶
OwnerOrgIDNotNil applies the NotNil predicate on the "owner_org_id" field.
func Private ¶
Private applies equality check predicate on the "private" field. It's identical to PrivateEQ.
func PrivateIsNil ¶
PrivateIsNil applies the IsNil predicate on the "private" field.
func PrivateNEQ ¶
PrivateNEQ applies the NEQ predicate on the "private" field.
func PrivateNotNil ¶
PrivateNotNil applies the NotNil predicate on the "private" field.
func RedirectURI ¶
RedirectURI applies equality check predicate on the "redirect_uri" field. It's identical to RedirectURIEQ.
func RedirectURIContains ¶
RedirectURIContains applies the Contains predicate on the "redirect_uri" field.
func RedirectURIContainsFold ¶
RedirectURIContainsFold applies the ContainsFold predicate on the "redirect_uri" field.
func RedirectURIEQ ¶
RedirectURIEQ applies the EQ predicate on the "redirect_uri" field.
func RedirectURIEqualFold ¶
RedirectURIEqualFold applies the EqualFold predicate on the "redirect_uri" field.
func RedirectURIGT ¶
RedirectURIGT applies the GT predicate on the "redirect_uri" field.
func RedirectURIGTE ¶
RedirectURIGTE applies the GTE predicate on the "redirect_uri" field.
func RedirectURIHasPrefix ¶
RedirectURIHasPrefix applies the HasPrefix predicate on the "redirect_uri" field.
func RedirectURIHasSuffix ¶
RedirectURIHasSuffix applies the HasSuffix predicate on the "redirect_uri" field.
func RedirectURIIn ¶
RedirectURIIn applies the In predicate on the "redirect_uri" field.
func RedirectURIIsNil ¶
RedirectURIIsNil applies the IsNil predicate on the "redirect_uri" field.
func RedirectURILT ¶
RedirectURILT applies the LT predicate on the "redirect_uri" field.
func RedirectURILTE ¶
RedirectURILTE applies the LTE predicate on the "redirect_uri" field.
func RedirectURINEQ ¶
RedirectURINEQ applies the NEQ predicate on the "redirect_uri" field.
func RedirectURINotIn ¶
RedirectURINotIn applies the NotIn predicate on the "redirect_uri" field.
func RedirectURINotNil ¶
RedirectURINotNil applies the NotNil predicate on the "redirect_uri" field.
func RefreshTokenValidity ¶
RefreshTokenValidity applies equality check predicate on the "refresh_token_validity" field. It's identical to RefreshTokenValidityEQ.
func RefreshTokenValidityEQ ¶
RefreshTokenValidityEQ applies the EQ predicate on the "refresh_token_validity" field.
func RefreshTokenValidityGT ¶
RefreshTokenValidityGT applies the GT predicate on the "refresh_token_validity" field.
func RefreshTokenValidityGTE ¶
RefreshTokenValidityGTE applies the GTE predicate on the "refresh_token_validity" field.
func RefreshTokenValidityIn ¶
RefreshTokenValidityIn applies the In predicate on the "refresh_token_validity" field.
func RefreshTokenValidityIsNil ¶
RefreshTokenValidityIsNil applies the IsNil predicate on the "refresh_token_validity" field.
func RefreshTokenValidityLT ¶
RefreshTokenValidityLT applies the LT predicate on the "refresh_token_validity" field.
func RefreshTokenValidityLTE ¶
RefreshTokenValidityLTE applies the LTE predicate on the "refresh_token_validity" field.
func RefreshTokenValidityNEQ ¶
RefreshTokenValidityNEQ applies the NEQ predicate on the "refresh_token_validity" field.
func RefreshTokenValidityNotIn ¶
RefreshTokenValidityNotIn applies the NotIn predicate on the "refresh_token_validity" field.
func RefreshTokenValidityNotNil ¶
RefreshTokenValidityNotNil applies the NotNil predicate on the "refresh_token_validity" field.
func Scopes ¶
Scopes applies equality check predicate on the "scopes" field. It's identical to ScopesEQ.
func ScopesContains ¶
ScopesContains applies the Contains predicate on the "scopes" field.
func ScopesContainsFold ¶
ScopesContainsFold applies the ContainsFold predicate on the "scopes" field.
func ScopesEqualFold ¶
ScopesEqualFold applies the EqualFold predicate on the "scopes" field.
func ScopesHasPrefix ¶
ScopesHasPrefix applies the HasPrefix predicate on the "scopes" field.
func ScopesHasSuffix ¶
ScopesHasSuffix applies the HasSuffix predicate on the "scopes" field.
func ScopesIsNil ¶
ScopesIsNil applies the IsNil predicate on the "scopes" field.
func ScopesNotIn ¶
ScopesNotIn applies the NotIn predicate on the "scopes" field.
func ScopesNotNil ¶
ScopesNotNil applies the NotNil predicate on the "scopes" field.
func StatusEQ ¶
func StatusEQ(v typex.SimpleStatus) predicate.App
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...typex.SimpleStatus) predicate.App
StatusIn applies the In predicate on the "status" field.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v typex.SimpleStatus) predicate.App
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...typex.SimpleStatus) predicate.App
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" field.
func StatusValidator ¶
func StatusValidator(s typex.SimpleStatus) error
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func TokenValidity ¶
TokenValidity applies equality check predicate on the "token_validity" field. It's identical to TokenValidityEQ.
func TokenValidityEQ ¶
TokenValidityEQ applies the EQ predicate on the "token_validity" field.
func TokenValidityGT ¶
TokenValidityGT applies the GT predicate on the "token_validity" field.
func TokenValidityGTE ¶
TokenValidityGTE applies the GTE predicate on the "token_validity" field.
func TokenValidityIn ¶
TokenValidityIn applies the In predicate on the "token_validity" field.
func TokenValidityIsNil ¶
TokenValidityIsNil applies the IsNil predicate on the "token_validity" field.
func TokenValidityLT ¶
TokenValidityLT applies the LT predicate on the "token_validity" field.
func TokenValidityLTE ¶
TokenValidityLTE applies the LTE predicate on the "token_validity" field.
func TokenValidityNEQ ¶
TokenValidityNEQ applies the NEQ predicate on the "token_validity" field.
func TokenValidityNotIn ¶
TokenValidityNotIn applies the NotIn predicate on the "token_validity" field.
func TokenValidityNotNil ¶
TokenValidityNotNil applies the NotNil predicate on the "token_validity" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Kind ¶
type Kind string
Kind defines the type for the "kind" enum field.
func (Kind) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Kind) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.
type OrderOption ¶
OrderOption defines the ordering options for the App queries.
func ByActions ¶
func ByActions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByActions orders the results by actions terms.
func ByActionsCount ¶
func ByActionsCount(opts ...sql.OrderTermOption) OrderOption
ByActionsCount orders the results by actions count.
func ByAppKey ¶
func ByAppKey(opts ...sql.OrderTermOption) OrderOption
ByAppKey orders the results by the app_key field.
func ByAppSecret ¶
func ByAppSecret(opts ...sql.OrderTermOption) OrderOption
ByAppSecret orders the results by the app_secret field.
func ByCode ¶
func ByCode(opts ...sql.OrderTermOption) OrderOption
ByCode orders the results by the code field.
func ByComments ¶
func ByComments(opts ...sql.OrderTermOption) OrderOption
ByComments orders the results by the comments field.
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 ByDicts ¶
func ByDicts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDicts orders the results by dicts terms.
func ByDictsCount ¶
func ByDictsCount(opts ...sql.OrderTermOption) OrderOption
ByDictsCount orders the results by dicts count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKind ¶
func ByKind(opts ...sql.OrderTermOption) OrderOption
ByKind orders the results by the kind field.
func ByLogo ¶
func ByLogo(opts ...sql.OrderTermOption) OrderOption
ByLogo orders the results by the logo field.
func ByMenus ¶
func ByMenus(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMenus orders the results by menus terms.
func ByMenusCount ¶
func ByMenusCount(opts ...sql.OrderTermOption) OrderOption
ByMenusCount orders the results by menus count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOrgApp ¶
func ByOrgApp(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOrgApp orders the results by org_app terms.
func ByOrgAppCount ¶
func ByOrgAppCount(opts ...sql.OrderTermOption) OrderOption
ByOrgAppCount orders the results by org_app count.
func ByOrgs ¶
func ByOrgs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOrgs orders the results by orgs terms.
func ByOrgsCount ¶
func ByOrgsCount(opts ...sql.OrderTermOption) OrderOption
ByOrgsCount orders the results by orgs count.
func ByOwnerOrgID ¶
func ByOwnerOrgID(opts ...sql.OrderTermOption) OrderOption
ByOwnerOrgID orders the results by the owner_org_id field.
func ByPolicies ¶
func ByPolicies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPolicies orders the results by policies terms.
func ByPoliciesCount ¶
func ByPoliciesCount(opts ...sql.OrderTermOption) OrderOption
ByPoliciesCount orders the results by policies count.
func ByPrivate ¶
func ByPrivate(opts ...sql.OrderTermOption) OrderOption
ByPrivate orders the results by the private field.
func ByRedirectURI ¶
func ByRedirectURI(opts ...sql.OrderTermOption) OrderOption
ByRedirectURI orders the results by the redirect_uri field.
func ByRefreshTokenValidity ¶
func ByRefreshTokenValidity(opts ...sql.OrderTermOption) OrderOption
ByRefreshTokenValidity orders the results by the refresh_token_validity field.
func ByResources ¶
func ByResources(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByResources orders the results by resources terms.
func ByResourcesCount ¶
func ByResourcesCount(opts ...sql.OrderTermOption) OrderOption
ByResourcesCount orders the results by resources count.
func ByRoles ¶
func ByRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRoles orders the results by roles terms.
func ByRolesCount ¶
func ByRolesCount(opts ...sql.OrderTermOption) OrderOption
ByRolesCount orders the results by roles count.
func ByScopes ¶
func ByScopes(opts ...sql.OrderTermOption) OrderOption
ByScopes orders the results by the scopes field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByTokenValidity ¶
func ByTokenValidity(opts ...sql.OrderTermOption) OrderOption
ByTokenValidity orders the results by the token_validity 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.