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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGiveawayModule

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

Types

type Giveaway

type Giveaway struct {
	ID           int      `json:"id" storm:"id,increment"`
	Tag          string   `json:"tag"`
	Desc         string   `json:"desc"`
	Participants []string `json:"participants"`
}

type GiveawayModule

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

func (*GiveawayModule) GetRPCService

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

func (*GiveawayModule) Start

func (m *GiveawayModule) Start() error

func (*GiveawayModule) Stop

func (m *GiveawayModule) Stop() error

type GiveawayService

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

func NewGiveawayService

func NewGiveawayService(module *GiveawayModule) *GiveawayService

func (*GiveawayService) Get

func (s *GiveawayService) Get(r *http.Request, id *int, g *Giveaway) error

func (*GiveawayService) New

func (s *GiveawayService) New(r *http.Request, g *Giveaway, id *int) error

func (*GiveawayService) Update

func (s *GiveawayService) Update(r *http.Request, g *Giveaway, id *int) error

Jump to

Keyboard shortcuts

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