Documentation
¶
Index ¶
- func AllowPrivilegedGuildMutation() privacy.MutationRule
- func AllowPrivilegedGuildQuery() privacy.QueryRule
- func AllowRoles(allowed ...string) privacy.QueryMutationRule
- func AllowUserMutateSelf() privacy.MutationRule
- func AllowUserQuerySelf() privacy.QueryRule
- func DisallowDebugUnlessAdmin() privacy.QueryRule
- type Guild
- type GuildAdminConfig
- type GuildConfig
- type GuildEvent
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowPrivilegedGuildMutation ¶
func AllowPrivilegedGuildMutation() privacy.MutationRule
func AllowRoles ¶
func AllowRoles(allowed ...string) privacy.QueryMutationRule
AllowRoles is a rule that returns Allow decision if the authenticated client has ONE of the specified roles.
func AllowUserMutateSelf ¶
func AllowUserMutateSelf() privacy.MutationRule
func AllowUserQuerySelf ¶
Types ¶
type Guild ¶
func (Guild) Annotations ¶
func (Guild) Annotations() []schema.Annotation
type GuildAdminConfig ¶
func (GuildAdminConfig) Annotations ¶
func (GuildAdminConfig) Annotations() []schema.Annotation
func (GuildAdminConfig) Edges ¶
func (GuildAdminConfig) Edges() []ent.Edge
func (GuildAdminConfig) Fields ¶
func (GuildAdminConfig) Fields() []ent.Field
func (GuildAdminConfig) Mixin ¶
func (GuildAdminConfig) Mixin() []ent.Mixin
func (GuildAdminConfig) Policy ¶
func (GuildAdminConfig) Policy() ent.Policy
type GuildConfig ¶
func (GuildConfig) Annotations ¶
func (GuildConfig) Annotations() []schema.Annotation
func (GuildConfig) Edges ¶
func (GuildConfig) Edges() []ent.Edge
func (GuildConfig) Fields ¶
func (GuildConfig) Fields() []ent.Field
func (GuildConfig) Mixin ¶
func (GuildConfig) Mixin() []ent.Mixin
func (GuildConfig) Policy ¶
func (GuildConfig) Policy() ent.Policy
type GuildEvent ¶
func (GuildEvent) Annotations ¶
func (GuildEvent) Annotations() []schema.Annotation
func (GuildEvent) Edges ¶
func (GuildEvent) Edges() []ent.Edge
func (GuildEvent) Fields ¶
func (GuildEvent) Fields() []ent.Field
func (GuildEvent) Mixin ¶
func (GuildEvent) Mixin() []ent.Mixin
func (GuildEvent) Policy ¶
func (GuildEvent) Policy() ent.Policy
type User ¶
User holds the schema definition for the User entity.
func (User) Annotations ¶
func (User) Annotations() []schema.Annotation
Click to show internal directories.
Click to hide internal directories.