compose

package
v0.0.0-...-71c93ef Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataType

type DataType int

DataType represents the type of data stored in a store.

const (
	// UserStore represents a store for user data.
	UserStore DataType = iota
	// FileStore represents a store for file data.
	FileStore
	// CSRFStore represents a store for CSRF data.
	CSRFStore
)

type Factory

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

Factory is a factory for creating services.

func NewFactory

func NewFactory(appConfig *appconfig.Config) *Factory

NewFactory creates a new factory.

func (*Factory) CreateAPIFallbackHandler

func (f *Factory) CreateAPIFallbackHandler() *api.FallbackHandler

func (*Factory) CreateAPIFileHandler

func (f *Factory) CreateAPIFileHandler() *api.FileHandler

func (*Factory) CreateAPIUserHandler

func (f *Factory) CreateAPIUserHandler() *api.UserHandler

func (*Factory) CreateCSRFRepo

func (f *Factory) CreateCSRFRepo(csrfStore repo.Store) *repo.CSRF

CreateCSRFRepo creates a CSRF repository.

func (*Factory) CreateCliApp

func (f *Factory) CreateCliApp() *cli.App

CreateCliApp creates a CLI app.

func (*Factory) CreateCookieService

func (f *Factory) CreateCookieService() *service.Cookie

CreateCookieService creates a cookie service.

func (*Factory) CreateFallbackHandler

func (f *Factory) CreateFallbackHandler() *http.FallbackHandler

func (*Factory) CreateFileHandler

func (f *Factory) CreateFileHandler() *http.FileHandler

func (*Factory) CreateFileRepo

func (f *Factory) CreateFileRepo(fileStore repo.Store) *repo.File

func (*Factory) CreateFileService

func (f *Factory) CreateFileService() *service.File

CreateFileService creates a file service.

func (*Factory) CreateHTTPApp

func (f *Factory) CreateHTTPApp() *http.App

CreateHTTPApp creates an HTTP app.

func (*Factory) CreateUserHandler

func (f *Factory) CreateUserHandler() *http.UserHandler

func (*Factory) CreateUserRepo

func (f *Factory) CreateUserRepo(userStore repo.Store) *repo.User

func (*Factory) CreateUserService

func (f *Factory) CreateUserService() *service.User

CreateUserService creates a user service.

func (*Factory) CreateWebFallbackHandler

func (f *Factory) CreateWebFallbackHandler() *web.FallbackHandler

func (*Factory) CreateWebFileHandler

func (f *Factory) CreateWebFileHandler() *web.FileHandler

func (*Factory) CreateWebUserHandler

func (f *Factory) CreateWebUserHandler() *web.UserHandler

func (*Factory) GetDisplay

func (f *Factory) GetDisplay() cli.Display

GetDisplay returns the display.

func (*Factory) GetLogger

func (f *Factory) GetLogger() *log.Logger

GetLogger returns the logger.

func (*Factory) GetS3Client

func (f *Factory) GetS3Client() *s3.Client

GetS3Client returns the S3 client.

func (*Factory) GetStore

func (f *Factory) GetStore(dataType DataType) repo.Store

func (*Factory) SetAWS

func (f *Factory) SetAWS(awsConfig aws.Config) *Factory

SetAWS sets the AWS configuration for the factory.

func (*Factory) SetDisplay

func (f *Factory) SetDisplay(display cli.Display)

SetDisplay sets the display for the factory.

func (*Factory) SetFileSystem

func (f *Factory) SetFileSystem(fs service.FileSystem)

SetFileSystem sets the file system for the factory.

func (*Factory) SetHasher

func (f *Factory) SetHasher(hasher service.PasswordHasher)

SetHasher sets the password hasher for the factory.

func (*Factory) SetLogLevel

func (f *Factory) SetLogLevel(level log.Level)

func (*Factory) SetStore

func (f *Factory) SetStore(storeInstance repo.Store, dataType DataType)

SetStore sets the store for the factory.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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