policy

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decision

type Decision struct {
	BotID string
}

type Service

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

func NewService

func NewService(log *slog.Logger, botsService *bots.Service) *Service

func (*Service) BotOwnerUserID

func (s *Service) BotOwnerUserID(ctx context.Context, botID string) (string, error)

BotOwnerUserID returns bot owner's user id. Implements router.PolicyService.

func (*Service) Resolve

func (s *Service) Resolve(ctx context.Context, botID string) (Decision, error)

Resolve evaluates the full access policy for a bot.

Jump to

Keyboard shortcuts

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