dpi

package
v0.0.0-...-73ad954 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package dpi creates dependencies for usage across the binhost server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies struct {
	// DB is a database client
	DB *ent.Client

	// S3 is a S3 client
	S3 *minio.Client

	// Conf is the configuration for the binhost server.
	Conf *config.Config

	// Log is a configured logger that should be used for logging purposes.
	Log *slog.Logger
}

Dependencies contains dependencies for the binhost server that is passed around to various components.

func New

func New(ctx context.Context, log *slog.Logger) (*Dependencies, error)

New creates a new dependencies struct with all of the required clients and configuration.

Jump to

Keyboard shortcuts

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