Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotAuthorized = errors.New("not authorized")
Functions ¶
This section is empty.
Types ¶
type DiscoDomain ¶
type DiscoDomain struct { Repo *repository.Repository Redis *database.RedisWrapper SupabaseAuth *database.SupabaseAuth }
Domain logic layer
func (*DiscoDomain) CheckAuthorization ¶
func (d *DiscoDomain) CheckAuthorization(s *discordgo.Session, i *discordgo.InteractionCreate) *ent.User
Shared auth wrapper, returns nil if unauthorized
Click to show internal directories.
Click to hide internal directories.