controller

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Container *services.Container
}

Controller has access to all services via services.Container. It is responsbile for the core business logic of utilizing all services in conjunction with one another.

func NewController

func NewController(c *services.Container) Controller

NewController creates an instance of a Controller, given a reference to a Container.

func (*Controller) Run

func (c *Controller) Run(errChan chan error)

Run registers all the discord command handlers, opens a websocket connection, and begins execution.

Jump to

Keyboard shortcuts

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