voting

package
Version: v0.0.0-...-3fe642c Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2017 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EventTypes = []string{
	"PollCreated",
	"PollOpened",
	"PollClosed",
	"IssueAppended",
	"BallotCast",
}

Functions

This section is empty.

Types

type BallotCast

type BallotCast []BallotSelection

BallotCast metadata for BallotCast event

type BallotSelection

type BallotSelection struct {
	IssueTopic string `json:"issue_topic"`
	WroteIn    bool   `json:"wrote_in"`
	Choice     int    `json:"choice"`
	WriteIn    string `json:"write_in"`
	Comment    string `json:"comment"`
}

BallotSelection metadata items for BallotCast event

type IssueAppended

type IssueAppended struct {
	Topic      string   `json:"topic"`
	Choices    []string `json:"choices"`
	CanWriteIn bool     `json:"can_write_in"`
}

IssueAppended metadata for IssueAppended event

type PollClosed

type PollClosed struct {
	ID string
}

PollClosed metadata for PollClosed event

type PollCreated

type PollCreated struct {
	ID string `json:"id"`
}

PollCreated metadata for PollCreated event

type PollOpened

type PollOpened struct {
	ID string
}

PollOpened metadata for PollOpened event

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL