util

package
v0.0.0-...-0cebefa Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ALLOW_ORIGIN = "https://vote.jomy.dev"

Variables

This section is empty.

Functions

This section is empty.

Types

type Poll

type Poll struct {
	Title string `json:"title"`
	// Amount of votes mapped to the options
	Votes map[string]int `json:"votes"`
}

func GetPoll

func GetPoll(db *firestore.Client, pollId string) (Poll, error)

Get a poll from the database

Jump to

Keyboard shortcuts

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