access

package
v0.0.0-...-687d16e Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessManager

type AccessManager struct {
	// contains filtered or unexported fields
}

func New

func New(apps store.AppStore) *AccessManager

func (*AccessManager) GetAppPermissionsForUser

func (m *AccessManager) GetAppPermissionsForUser(ctx context.Context, appID distype.Snowflake, userID distype.Snowflake) (*AppPermissions, error)

type AccessMiddleware

type AccessMiddleware struct {
	// contains filtered or unexported fields
}

func NewMiddleware

func NewMiddleware(manager *AccessManager) *AccessMiddleware

func (*AccessMiddleware) AppAccessRequired

func (m *AccessMiddleware) AppAccessRequired() func(c *fiber.Ctx) error

type AppPermissions

type AppPermissions struct {
	UserIsOwner bool
}

Jump to

Keyboard shortcuts

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