Documentation ¶
Overview ¶
--- Test route for verification process --------------------------------------------------------------------------------- TODO Remove test route
--- cmd specific functions which are best to remain within the package ---------------------------------------------------------------------------
Index ¶
- Constants
- func EnterAsset(l LocalContext, prompt string) string
- func EnterEmail(l LocalContext) string
- func EnterInvoice(l LocalContext, asset string, assetDesc string) string
- func GenericQuery(l LocalContext, prompt string) string
- func GetInvoice(l LocalContext, prompt string) string
- func NewHelpRoute(router *exrouter.Route) *cmdHelp
- func NextMessageCreateC(s *discordgo.Session) chan *discordgo.MessageCreate
- func NextMessageReactionAddC(s *discordgo.Session) chan *discordgo.MessageReactionAdd
- func QueryInput(channel *discordgo.Channel, ctx *exrouter.Context, prompt string, ...) (*discordgo.Message, error)
- func RegisterRoutes(router *exrouter.Route, routes ...Route)
- type AddUser
- type Avatar
- type CmdRouteDataAccessObject
- type CustomRouteHandler
- type DbSetup
- type DbUpdate
- type DefaultRouteHandler
- type DirectMessage
- type ExampleSubRoute
- type Invoices
- type ListRoles
- type Ping
- type Request
- type Route
- type SubRoute
- type Test
- type User
- type Verify
Constants ¶
const DbSetupDescription = "Creates necessary tables in database"
const DbSetupRoute = "dbsetup"
const DbUpdateDescription = "Creates necessary tables in database"
const DbUpdateRoute = "dbupdate"
const RequestDescription = "Creates web request"
const RequestRoute = "request"
const TestDescription = "Test Route"
const TestRoute = "test"
Variables ¶
This section is empty.
Functions ¶
func EnterAsset ¶
--- Obtain asset identification ----------------------------------------------------------------
func EnterEmail ¶
func EnterEmail(l LocalContext) string
--- Obtain email address ----------------------------------------------------------------------
func EnterInvoice ¶
--- Obtain invoice number ----------------------------------------------------------------------
func GenericQuery ¶
--- Generic input text query -------------------------------------------------------------------
func GetInvoice ¶
--- Queries user for invoice input ------------------------------------------------------------- TODO Test Function
func NewHelpRoute ¶
func NextMessageCreateC ¶
func NextMessageCreateC(s *discordgo.Session) chan *discordgo.MessageCreate
NextMessageCreateC returns a channel for the next MessageCreate event
func NextMessageReactionAddC ¶
func NextMessageReactionAddC(s *discordgo.Session) chan *discordgo.MessageReactionAdd
NextMessageReactionAddC returns a channel for the next MessageReactionAdd event
func QueryInput ¶
func RegisterRoutes ¶
Types ¶
type AddUser ¶
type AddUser struct {
// contains filtered or unexported fields
}
func NewAddUser ¶
func NewAddUser(di di.Container) *AddUser
func (*AddUser) GetCommand ¶
func (*AddUser) GetDescription ¶
type CmdRouteDataAccessObject ¶
type CmdRouteDataAccessObject struct{}
var CmdRouteDAO *CmdRouteDataAccessObject
type CustomRouteHandler ¶
type DbSetup ¶
type DbSetup struct {
// contains filtered or unexported fields
}
func NewDbSetup ¶
func NewDbSetup(di di.Container) *DbSetup
func (*DbSetup) GetCommand ¶
func (*DbSetup) GetDescription ¶
type DbUpdate ¶
type DbUpdate struct {
// contains filtered or unexported fields
}
func NewDbUpdate ¶
func NewDbUpdate(di di.Container) *DbUpdate
func (*DbUpdate) GetCommand ¶
func (*DbUpdate) GetDescription ¶
type DefaultRouteHandler ¶
type DirectMessage ¶
type DirectMessage struct{}
func NewDirectMessage ¶
func NewDirectMessage() *DirectMessage
func (*DirectMessage) GetCommand ¶
func (d *DirectMessage) GetCommand() string
func (*DirectMessage) GetDescription ¶
func (d *DirectMessage) GetDescription() string
func (*DirectMessage) Handle ¶
func (d *DirectMessage) Handle(ctx *exrouter.Context)
type ExampleSubRoute ¶
type ExampleSubRoute struct {
// contains filtered or unexported fields
}
func NewSubRoute ¶
func NewSubRoute(di di.Container) *ExampleSubRoute
func (*ExampleSubRoute) GetCommand ¶
func (u *ExampleSubRoute) GetCommand() string
func (*ExampleSubRoute) GetDescription ¶
func (u *ExampleSubRoute) GetDescription() string
func (*ExampleSubRoute) GetSubRoutes ¶
func (u *ExampleSubRoute) GetSubRoutes() []Route
func (*ExampleSubRoute) Handle ¶
func (u *ExampleSubRoute) Handle(ctx *exrouter.Context)
type Invoices ¶
type Invoices struct { PriceExvat string `json:"price_exvat"` Downloaded string `json:"downloaded"` Date time.Time `json:"date"` Quantity string `json:"quantity"` Reason string `json:"reason"` OtherLicense string `json:"other_license"` Package string `json:"package"` Currency string `json:"currency"` Refunded string `json:"refunded"` Invoice string `json:"invoice"` }
type ListRoles ¶
type ListRoles struct {
// contains filtered or unexported fields
}
func NewListRoles ¶
func NewListRoles(di di.Container) *ListRoles
func (*ListRoles) GetCommand ¶
func (*ListRoles) GetDescription ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func NewRequest ¶
func NewRequest(di di.Container) *Request
func (*Request) GetCommand ¶
func (*Request) GetDescription ¶
type Test ¶
type Test struct {
// contains filtered or unexported fields
}
func (*Test) GetCommand ¶
func (*Test) GetDescription ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
func (*User) GetCommand ¶
func (*User) GetDescription ¶
type Verify ¶
type Verify struct {
// contains filtered or unexported fields
}
func (*Verify) GetCommand ¶
--- Setup methods --------------------------------------------------------------------------------------------------------------------------------