schema

package
v0.0.0-...-d1147f9 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowPrivilegedGuildMutation

func AllowPrivilegedGuildMutation() privacy.MutationRule

func AllowPrivilegedGuildQuery

func AllowPrivilegedGuildQuery() privacy.QueryRule

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

func AllowUserQuerySelf() privacy.QueryRule

func DisallowDebugUnlessAdmin

func DisallowDebugUnlessAdmin() privacy.QueryRule

Types

type Guild

type Guild struct {
	ent.Schema
}

func (Guild) Annotations

func (Guild) Annotations() []schema.Annotation

func (Guild) Edges

func (Guild) Edges() []ent.Edge

func (Guild) Fields

func (Guild) Fields() []ent.Field

func (Guild) Mixin

func (Guild) Mixin() []ent.Mixin

func (Guild) Policy

func (Guild) Policy() ent.Policy

type GuildAdminConfig

type GuildAdminConfig struct {
	ent.Schema
}

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

type GuildConfig struct {
	ent.Schema
}

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

type GuildEvent struct {
	ent.Schema
}

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

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Annotations

func (User) Annotations() []schema.Annotation

func (User) Edges

func (User) Edges() []ent.Edge

Edges of the User.

func (User) Fields

func (User) Fields() []ent.Field

Fields of the User.

func (User) Mixin

func (User) Mixin() []ent.Mixin

func (User) Policy

func (User) Policy() ent.Policy

Jump to

Keyboard shortcuts

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