giveaway

package
v0.0.0-...-2f9a7ba Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSimpleCommandModule

func NewSimpleCommandModule(bot *roll.Bot, dbBucket storm.Node) (roll.Module, error)

Types

type SimpleCommand

type SimpleCommand struct {
	ID       int    `json:"id" storm:"id,increment"`
	Command  string `json: "command"`
	Response string `json: "response"`
}

type SimpleCommandList

type SimpleCommandList struct {
	Commands []SimpleCommand `json :"commands"`
}

type SimpleCommandModule

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

func (*SimpleCommandModule) GetRPCService

func (m *SimpleCommandModule) GetRPCService() interface{}

func (*SimpleCommandModule) Start

func (m *SimpleCommandModule) Start() error

func (*SimpleCommandModule) Stop

func (m *SimpleCommandModule) Stop() error

type SimpleCommandService

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

func NewSimpleCommandService

func NewSimpleCommandService(module *SimpleCommandModule) *SimpleCommandService

func (*SimpleCommandService) All

func (*SimpleCommandService) Del

func (s *SimpleCommandService) Del(r *http.Request, id *int, ret *int) error

func (*SimpleCommandService) Get

func (*SimpleCommandService) New

func (*SimpleCommandService) Update

func (s *SimpleCommandService) Update(r *http.Request, g *SimpleCommand, id *int) error

Jump to

Keyboard shortcuts

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