devtoolkit

package
v0.0.0-...-2f0a4f1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package devtoolkit gathers several useful dependencies in different places in the code and avoids making global variables. This is a dependency injection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevToolkit

type DevToolkit struct {
	// Logger represents the logging system.
	Logger *log.Logger
	// Config represents all configuration.
	Config *config.Config
	// SentryClient allows to send errors to Sentry.
	SentryClient *sentry.Client
	// UserDirs contains the paths of the folders following the XDG standards.
	UserDirs *userdirs.UserDirs
	// BuildInfo holds all information about the current build.
	BuildInfo *buildinfo.BuildInfo
}

DevToolkit store the various dependencies that will be used during injection.

func NewDevToolkit

func NewDevToolkit() (toolkit *DevToolkit, err error)

NewDevToolkit instantiates a new DevToolkit for the application. This function should only be called once.

Directories

Path Synopsis
Package userdirs implements a structure and methods to handle user-specific directories.
Package userdirs implements a structure and methods to handle user-specific directories.

Jump to

Keyboard shortcuts

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