accesspolicy

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Store   *store.Store
	Enabled bool
}

type EmailAccessPolicy

type EmailAccessPolicy interface {
	IsEmailAllowed(ctx context.Context, email string) (bool, error)
}

type NoopEmailAccessPolicy

type NoopEmailAccessPolicy struct{}

func (NoopEmailAccessPolicy) IsEmailAllowed

func (NoopEmailAccessPolicy) IsEmailAllowed(ctx context.Context, email string) (bool, error)

type Service

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

func New

func New(cfg Config) *Service

func (*Service) IsEmailAllowed

func (s *Service) IsEmailAllowed(ctx context.Context, email string) (bool, error)

Jump to

Keyboard shortcuts

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