services

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: MIT Imports: 4 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 stores the application configuration.
	Config *config.Config

	// Logger provies access to logging functions.
	Logger *zap.Logger

	// DiscordSession provides access to the underlying discordgo library.
	DiscordSession *discordgo.Session
}

Container contains all services used by the bot and provides an easy way to handle dependency injection.

func NewContainer

func NewContainer() (*Container, error)

func (*Container) Shutdown

func (c *Container) Shutdown() error

Jump to

Keyboard shortcuts

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