background

package
v0.0.0-...-c4f7e29 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 65 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewDummyHTTPRequest

func NewDummyHTTPRequest() *http.Request

This dummy HTTP request is only used for get/set cookie which does not have any effect at all.

func ProvideHTTPHost

func ProvideHTTPHost() httputil.HTTPHost

func ProvideHTTPProto

func ProvideHTTPProto() httputil.HTTPProto

func ProvideRemoteIP

func ProvideRemoteIP() httputil.RemoteIP

func ProvideUserAgentString

func ProvideUserAgentString() httputil.UserAgentString

Types

type AccountAnonymizationServiceFactory

type AccountAnonymizationServiceFactory struct {
	BackgroundProvider *deps.BackgroundProvider
}

func (*AccountAnonymizationServiceFactory) MakeUserService

type AccountDeletionServiceFactory

type AccountDeletionServiceFactory struct {
	BackgroundProvider *deps.BackgroundProvider
}

func (*AccountDeletionServiceFactory) MakeUserService

type Config

type Config struct {
	// ConfigSource configures the source of app configurations
	ConfigSource *configsource.Config `envconfig:"CONFIG_SOURCE"`
	// BuiltinResourceDirectory sets the directory for built-in resource files
	BuiltinResourceDirectory string `envconfig:"BUILTIN_RESOURCE_DIRECTORY" default:"resources/authgear"`
	// CustomResourceDirectory sets the directory for customized resource files
	CustomResourceDirectory string `envconfig:"CUSTOM_RESOURCE_DIRECTORY"`

	*config.EnvironmentConfig
}

func LoadConfigFromEnv

func LoadConfigFromEnv() (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

type Controller

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

func (*Controller) Start

func (c *Controller) Start()

type NoopTaskQueue

type NoopTaskQueue struct{}

func NewNoopTaskQueue

func NewNoopTaskQueue() NoopTaskQueue

func (NoopTaskQueue) Enqueue

func (NoopTaskQueue) Enqueue(taskParam task.Param)

type UserFacade

type UserFacade interface {
	DeleteFromScheduledDeletion(userID string) error
	AnonymizeFromScheduledAnonymization(userID string) error
}

type UserService

type UserService struct {
	AppDBHandle *appdb.Handle
	UserFacade  UserFacade
}

func (*UserService) AnonymizeFromScheduledAnonymization

func (s *UserService) AnonymizeFromScheduledAnonymization(userID string) (err error)

func (*UserService) DeleteFromScheduledDeletion

func (s *UserService) DeleteFromScheduledDeletion(userID string) (err error)

Jump to

Keyboard shortcuts

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