server

package
v0.0.0-...-e3af7b5 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2019 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 Module

type Module interface {
	GetName() string
	Init(server *Server) error
}

type Server

type Server struct {
	Modules  map[string]Module
	Session  *discordgo.Session
	Database *database.Database
}

func NewServer

func NewServer(identifier, address, password string) (*Server, error)

func (*Server) GetModuleByName

func (s *Server) GetModuleByName(name string) (Module, error)

func (*Server) RegisterModule

func (s *Server) RegisterModule(m Module)

func (Server) Start

func (s Server) Start() error

Jump to

Keyboard shortcuts

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