commands

package
v0.0.0-...-bf7c91d Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package commands is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Class

type Class string

Class enum type

const (
	Rogue  Class = "rogue"
	Knight Class = "knight"
	Wizard Class = "wizard"
)

Defines the possible classes a user can choose

func (Class) IsValid

func (class Class) IsValid() bool

IsValid returns true if the class is an existing one

type Command

type Command interface {
	Execute() error
	Payload() *CommandPayload
}

Command interface (command pattern)

type CommandPayload

type CommandPayload interface {
	Session() *discordgo.Session
}

CommandPayload pattern for command information

type DiscordConnector

type DiscordConnector interface {
	ChannelMessageSend(string, string) (*discordgo.Message, error)
}

DiscordConnector interface for sessions

type MockDiscordConnector

type MockDiscordConnector struct {
	// contains filtered or unexported fields
}

MockDiscordConnector is a mock of DiscordConnector interface

func NewMockDiscordConnector

func NewMockDiscordConnector(ctrl *gomock.Controller) *MockDiscordConnector

NewMockDiscordConnector creates a new mock instance

func (*MockDiscordConnector) ChannelMessageSend

func (m *MockDiscordConnector) ChannelMessageSend(arg0, arg1 string) (*discordgo.Message, error)

ChannelMessageSend mocks base method

func (*MockDiscordConnector) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

type MockDiscordConnectorMockRecorder

type MockDiscordConnectorMockRecorder struct {
	// contains filtered or unexported fields
}

MockDiscordConnectorMockRecorder is the mock recorder for MockDiscordConnector

func (*MockDiscordConnectorMockRecorder) ChannelMessageSend

func (mr *MockDiscordConnectorMockRecorder) ChannelMessageSend(arg0, arg1 interface{}) *gomock.Call

ChannelMessageSend indicates an expected call of ChannelMessageSend

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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