Documentation ¶
Index ¶
- Constants
- Variables
- func AllowedHTTPMethods(v string) predicate.Grant
- func AllowedHTTPMethodsContains(v string) predicate.Grant
- func AllowedHTTPMethodsContainsFold(v string) predicate.Grant
- func AllowedHTTPMethodsEQ(v string) predicate.Grant
- func AllowedHTTPMethodsEqualFold(v string) predicate.Grant
- func AllowedHTTPMethodsGT(v string) predicate.Grant
- func AllowedHTTPMethodsGTE(v string) predicate.Grant
- func AllowedHTTPMethodsHasPrefix(v string) predicate.Grant
- func AllowedHTTPMethodsHasSuffix(v string) predicate.Grant
- func AllowedHTTPMethodsIn(vs ...string) predicate.Grant
- func AllowedHTTPMethodsLT(v string) predicate.Grant
- func AllowedHTTPMethodsLTE(v string) predicate.Grant
- func AllowedHTTPMethodsNEQ(v string) predicate.Grant
- func AllowedHTTPMethodsNotIn(vs ...string) predicate.Grant
- func And(predicates ...predicate.Grant) predicate.Grant
- func CreatedAt(v time.Time) predicate.Grant
- func CreatedAtEQ(v time.Time) predicate.Grant
- func CreatedAtGT(v time.Time) predicate.Grant
- func CreatedAtGTE(v time.Time) predicate.Grant
- func CreatedAtIn(vs ...time.Time) predicate.Grant
- func CreatedAtLT(v time.Time) predicate.Grant
- func CreatedAtLTE(v time.Time) predicate.Grant
- func CreatedAtNEQ(v time.Time) predicate.Grant
- func CreatedAtNotIn(vs ...time.Time) predicate.Grant
- func DeletedAt(v time.Time) predicate.Grant
- func DeletedAtEQ(v time.Time) predicate.Grant
- func DeletedAtGT(v time.Time) predicate.Grant
- func DeletedAtGTE(v time.Time) predicate.Grant
- func DeletedAtIn(vs ...time.Time) predicate.Grant
- func DeletedAtIsNil() predicate.Grant
- func DeletedAtLT(v time.Time) predicate.Grant
- func DeletedAtLTE(v time.Time) predicate.Grant
- func DeletedAtNEQ(v time.Time) predicate.Grant
- func DeletedAtNotIn(vs ...time.Time) predicate.Grant
- func DeletedAtNotNil() predicate.Grant
- func Domain(v string) predicate.Grant
- func DomainContains(v string) predicate.Grant
- func DomainContainsFold(v string) predicate.Grant
- func DomainEQ(v string) predicate.Grant
- func DomainEqualFold(v string) predicate.Grant
- func DomainGT(v string) predicate.Grant
- func DomainGTE(v string) predicate.Grant
- func DomainHasPrefix(v string) predicate.Grant
- func DomainHasSuffix(v string) predicate.Grant
- func DomainIn(vs ...string) predicate.Grant
- func DomainLT(v string) predicate.Grant
- func DomainLTE(v string) predicate.Grant
- func DomainNEQ(v string) predicate.Grant
- func DomainNotIn(vs ...string) predicate.Grant
- func HashedGrantToken(v string) predicate.Grant
- func HashedGrantTokenContains(v string) predicate.Grant
- func HashedGrantTokenContainsFold(v string) predicate.Grant
- func HashedGrantTokenEQ(v string) predicate.Grant
- func HashedGrantTokenEqualFold(v string) predicate.Grant
- func HashedGrantTokenGT(v string) predicate.Grant
- func HashedGrantTokenGTE(v string) predicate.Grant
- func HashedGrantTokenHasPrefix(v string) predicate.Grant
- func HashedGrantTokenHasSuffix(v string) predicate.Grant
- func HashedGrantTokenIn(vs ...string) predicate.Grant
- func HashedGrantTokenLT(v string) predicate.Grant
- func HashedGrantTokenLTE(v string) predicate.Grant
- func HashedGrantTokenNEQ(v string) predicate.Grant
- func HashedGrantTokenNotIn(vs ...string) predicate.Grant
- func ID(id string) predicate.Grant
- func IDEQ(id string) predicate.Grant
- func IDGT(id string) predicate.Grant
- func IDGTE(id string) predicate.Grant
- func IDIn(ids ...string) predicate.Grant
- func IDLT(id string) predicate.Grant
- func IDLTE(id string) predicate.Grant
- func IDNEQ(id string) predicate.Grant
- func IDNotIn(ids ...string) predicate.Grant
- func Not(p predicate.Grant) predicate.Grant
- func Or(predicates ...predicate.Grant) predicate.Grant
- func UpdatedAt(v time.Time) predicate.Grant
- func UpdatedAtEQ(v time.Time) predicate.Grant
- func UpdatedAtGT(v time.Time) predicate.Grant
- func UpdatedAtGTE(v time.Time) predicate.Grant
- func UpdatedAtIn(vs ...time.Time) predicate.Grant
- func UpdatedAtLT(v time.Time) predicate.Grant
- func UpdatedAtLTE(v time.Time) predicate.Grant
- func UpdatedAtNEQ(v time.Time) predicate.Grant
- func UpdatedAtNotIn(vs ...time.Time) predicate.Grant
- func ValidColumn(column string) bool
- func Version(v string) predicate.Grant
- func VersionContains(v string) predicate.Grant
- func VersionContainsFold(v string) predicate.Grant
- func VersionEQ(v string) predicate.Grant
- func VersionEqualFold(v string) predicate.Grant
- func VersionGT(v string) predicate.Grant
- func VersionGTE(v string) predicate.Grant
- func VersionHasPrefix(v string) predicate.Grant
- func VersionHasSuffix(v string) predicate.Grant
- func VersionIn(vs ...string) predicate.Grant
- func VersionLT(v string) predicate.Grant
- func VersionLTE(v string) predicate.Grant
- func VersionNEQ(v string) predicate.Grant
- func VersionNotIn(vs ...string) predicate.Grant
Constants ¶
const ( // Label holds the string label denoting the grant type in the database. Label = "grant" // 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" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldHashedGrantToken holds the string denoting the hashed_grant_token field in the database. FieldHashedGrantToken = "hashed_grant_token" // FieldDomain holds the string denoting the domain field in the database. FieldDomain = "domain" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldAllowedHTTPMethods holds the string denoting the allowed_http_methods field in the database. FieldAllowedHTTPMethods = "allowed_http_methods" // FieldPaths holds the string denoting the paths field in the database. FieldPaths = "paths" // Table holds the table name of the grant in the database. Table = "grants" )
Variables ¶
var ( // 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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() string // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldHashedGrantToken, FieldDomain, FieldVersion, FieldAllowedHTTPMethods, FieldPaths, }
Columns holds all SQL columns for grant fields.
Functions ¶
func AllowedHTTPMethods ¶
AllowedHTTPMethods applies equality check predicate on the "allowed_http_methods" field. It's identical to AllowedHTTPMethodsEQ.
func AllowedHTTPMethodsContains ¶
AllowedHTTPMethodsContains applies the Contains predicate on the "allowed_http_methods" field.
func AllowedHTTPMethodsContainsFold ¶
AllowedHTTPMethodsContainsFold applies the ContainsFold predicate on the "allowed_http_methods" field.
func AllowedHTTPMethodsEQ ¶
AllowedHTTPMethodsEQ applies the EQ predicate on the "allowed_http_methods" field.
func AllowedHTTPMethodsEqualFold ¶
AllowedHTTPMethodsEqualFold applies the EqualFold predicate on the "allowed_http_methods" field.
func AllowedHTTPMethodsGT ¶
AllowedHTTPMethodsGT applies the GT predicate on the "allowed_http_methods" field.
func AllowedHTTPMethodsGTE ¶
AllowedHTTPMethodsGTE applies the GTE predicate on the "allowed_http_methods" field.
func AllowedHTTPMethodsHasPrefix ¶
AllowedHTTPMethodsHasPrefix applies the HasPrefix predicate on the "allowed_http_methods" field.
func AllowedHTTPMethodsHasSuffix ¶
AllowedHTTPMethodsHasSuffix applies the HasSuffix predicate on the "allowed_http_methods" field.
func AllowedHTTPMethodsIn ¶
AllowedHTTPMethodsIn applies the In predicate on the "allowed_http_methods" field.
func AllowedHTTPMethodsLT ¶
AllowedHTTPMethodsLT applies the LT predicate on the "allowed_http_methods" field.
func AllowedHTTPMethodsLTE ¶
AllowedHTTPMethodsLTE applies the LTE predicate on the "allowed_http_methods" field.
func AllowedHTTPMethodsNEQ ¶
AllowedHTTPMethodsNEQ applies the NEQ predicate on the "allowed_http_methods" field.
func AllowedHTTPMethodsNotIn ¶
AllowedHTTPMethodsNotIn applies the NotIn predicate on the "allowed_http_methods" 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 DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func Domain ¶
Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.
func DomainContains ¶
DomainContains applies the Contains predicate on the "domain" field.
func DomainContainsFold ¶
DomainContainsFold applies the ContainsFold predicate on the "domain" field.
func DomainEqualFold ¶
DomainEqualFold applies the EqualFold predicate on the "domain" field.
func DomainHasPrefix ¶
DomainHasPrefix applies the HasPrefix predicate on the "domain" field.
func DomainHasSuffix ¶
DomainHasSuffix applies the HasSuffix predicate on the "domain" field.
func DomainNotIn ¶
DomainNotIn applies the NotIn predicate on the "domain" field.
func HashedGrantToken ¶
HashedGrantToken applies equality check predicate on the "hashed_grant_token" field. It's identical to HashedGrantTokenEQ.
func HashedGrantTokenContains ¶
HashedGrantTokenContains applies the Contains predicate on the "hashed_grant_token" field.
func HashedGrantTokenContainsFold ¶
HashedGrantTokenContainsFold applies the ContainsFold predicate on the "hashed_grant_token" field.
func HashedGrantTokenEQ ¶
HashedGrantTokenEQ applies the EQ predicate on the "hashed_grant_token" field.
func HashedGrantTokenEqualFold ¶
HashedGrantTokenEqualFold applies the EqualFold predicate on the "hashed_grant_token" field.
func HashedGrantTokenGT ¶
HashedGrantTokenGT applies the GT predicate on the "hashed_grant_token" field.
func HashedGrantTokenGTE ¶
HashedGrantTokenGTE applies the GTE predicate on the "hashed_grant_token" field.
func HashedGrantTokenHasPrefix ¶
HashedGrantTokenHasPrefix applies the HasPrefix predicate on the "hashed_grant_token" field.
func HashedGrantTokenHasSuffix ¶
HashedGrantTokenHasSuffix applies the HasSuffix predicate on the "hashed_grant_token" field.
func HashedGrantTokenIn ¶
HashedGrantTokenIn applies the In predicate on the "hashed_grant_token" field.
func HashedGrantTokenLT ¶
HashedGrantTokenLT applies the LT predicate on the "hashed_grant_token" field.
func HashedGrantTokenLTE ¶
HashedGrantTokenLTE applies the LTE predicate on the "hashed_grant_token" field.
func HashedGrantTokenNEQ ¶
HashedGrantTokenNEQ applies the NEQ predicate on the "hashed_grant_token" field.
func HashedGrantTokenNotIn ¶
HashedGrantTokenNotIn applies the NotIn predicate on the "hashed_grant_token" 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 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionContains ¶
VersionContains applies the Contains predicate on the "version" field.
func VersionContainsFold ¶
VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionEqualFold ¶
VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionHasPrefix ¶
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasSuffix ¶
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
This section is empty.