registry

package
v0.0.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 49 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
	DB                 *gorm.DB
	WebsocketPool      *websocket.Pool
	HttpClient         *resty.Client
	OauthProviders     map[string]oauth.Provider
	GeocodingProviders map[string]geocoding.Provider
	SmtpSender         smtp.Sender
	TemplateEngine     template.Engine

	Cache struct {
		RDB     redis.UniversalClient
		Manager cache.Manager
	}
	S3 struct {
		Minio  *minio.Client
		Client s3.Client
	}
	PubSub struct {
		RDB   redis.UniversalClient
		Agent 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
	MasterProfile repo.MasterProfileRepository
}

type Services

type Services struct {
	Account       service.AccountService
	Auth          service.AuthService
	Geocoding     service.GeocodingService
	Health        service.HealthService
	MasterProfile service.MasterProfileService
	Resource      service.ResourceService
	Websocket     service.WebsocketService
}

Jump to

Keyboard shortcuts

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