models

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: NCSA Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decision

type Decision struct {
	Finalized bool   `json:"finalized" validate:"required|isdefault"`
	ID        string `json:"id"        validate:"required"`
	Status    string `json:"status"    validate:"required,oneof=PENDING REJECTED WAITLISTED ACCEPTED"`
	Wave      int    `json:"wave"      validate:""`
	Reviewer  string `json:"reviewer"  validate:"required"`
	Timestamp int64  `json:"timestamp" validate:"required"`
}

type DecisionFinalized

type DecisionFinalized struct {
	ID        string `json:"id"`
	Finalized bool   `json:"finalized"`
}

type DecisionHistory

type DecisionHistory struct {
	Finalized bool       `json:"finalized"`
	ID        string     `json:"id"`
	Status    string     `json:"status"`
	Wave      int        `json:"wave"`
	Reviewer  string     `json:"reviewer"`
	Timestamp int64      `json:"timestamp"`
	History   []Decision `json:"history"`
}

type DecisionView

type DecisionView struct {
	ID     string `json:"id"`
	Status string `json:"status"`
}

type FilteredDecisions

type FilteredDecisions struct {
	Decisions []DecisionHistory `json:"decisions"`
}

type MailList

type MailList struct {
	ID      string   `json:"id"`
	UserIDs []string `json:"userIds"`
}

Jump to

Keyboard shortcuts

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