Documentation ¶
Index ¶
- type DB
- func (d *DB) CastVote(username string, vote Vote) error
- func (d *DB) CreatePoll(id string, convID chat1.ConvIDStr, msgID chat1.MessageID, ...) error
- func (d *DB) GetPollInfo(id string) (convID chat1.ConvIDStr, resultMsgID chat1.MessageID, numChoices int, err error)
- func (d *DB) GetTally(id string) (res Tally, err error)
- type HTTPSrv
- type Handler
- type Tally
- type TallyResult
- type Vote
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPSrv ¶
func NewHTTPSrv ¶
func NewHTTPSrv(stats *base.StatsRegistry, kbc *kbchat.API, debugConfig *base.ChatDebugOutputConfig, db *DB, tokenSecret string) *HTTPSrv
func (*HTTPSrv) LoginToken ¶
type Handler ¶
type Handler struct { *base.DebugOutput // contains filtered or unexported fields }
func NewHandler ¶
func NewHandler(stats *base.StatsRegistry, kbc *kbchat.API, debugConfig *base.ChatDebugOutputConfig, httpSrv *HTTPSrv, db *DB, httpPrefix string) *Handler
func (*Handler) HandleCommand ¶
func (h *Handler) HandleCommand(msg chat1.MsgSummary) error
func (*Handler) HandleNewConv ¶
func (h *Handler) HandleNewConv(conv chat1.ConvSummary) error
type Tally ¶
type Tally []TallyResult
type TallyResult ¶
type TallyResult struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.