domain

package
v0.0.0-...-bfbcaf2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

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