linecmd

package
v0.0.0-...-6f746f0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCommandMapper

func BuildCommandMapper() domain.LineCommandMapper

BuildCommandMapper returns new instance of LineCommandMapper implementation

Types

type BaseCommand

type BaseCommand struct {
	Parameter []string
}

BaseCommand will be embedded by all children command

type CommandMapper

type CommandMapper struct{}

CommandMapper is implementation of domain.LineCommandMapper

func (*CommandMapper) GetCommandBuilder

func (m *CommandMapper) GetCommandBuilder(command string) domain.LineCommandBuilder

GetCommandBuilder returns command builder from command name

type CurrentEventsCommand

type CurrentEventsCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

CurrentEventsCommand processes command for current event

func (*CurrentEventsCommand) Process

Process ...

type HelpCommand

type HelpCommand struct {
	BaseCommand
}

HelpCommand returns commands information

func (*HelpCommand) Process

func (c *HelpCommand) Process() ([]linebot.SendingMessage, error)

Process ...

type TopTeamsCommand

type TopTeamsCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

TopTeamsCommand processes command to get top teams information

func (*TopTeamsCommand) Process

func (c *TopTeamsCommand) Process() ([]linebot.SendingMessage, error)

Process ...

type UpcomingEventsCommand

type UpcomingEventsCommand struct {
	BaseCommand
	// contains filtered or unexported fields
}

UpcomingEventsCommand processes command for current event

func (*UpcomingEventsCommand) Process

Process ...

Jump to

Keyboard shortcuts

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