registry

package
v0.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Config *config.Config

	Logger        *zerolog.Logger
	Bundle        *i18n.Bundle
	CacheRDB      *redis.Client
	PubSubRDB     *redis.Client
	DB            *gorm.DB
	S3            *minio.Client
	WebsocketPool *websocket.Pool
	HttpClient    *resty.Client

	OauthProviders map[string]oauth.Provider
	TemplateEngine template.Engine
	CacheManager   cache.Manager
	S3Client       s3.Client
	SmtpSender     smtp.Sender
	PubSub         pubsub.Agent

	Repos    *Repositories
	SVCs     *Services
	Handlers Handlers
}

func NewContainer

func NewContainer() *Container

func (*Container) Close

func (c *Container) Close() error

func (*Container) MustInitialize

func (c *Container) MustInitialize(cfg *config.Config)

type Handlers

type Handlers []handler.ApiHandler

type Repositories

type Repositories struct {
	User        repo.UserRepository
	BannedToken repo.BannedTokenRepository
}

type Services

type Services struct {
	Auth     *auth.Service
	Account  *account.Service
	Health   *health.Service
	Resource *resource.Service
	WS       *ws.Service
}

Jump to

Keyboard shortcuts

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