api

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PollInfoHandler

func PollInfoHandler(res http.ResponseWriter, req *http.Request)

Get poll info

func VoteHandler

func VoteHandler(res http.ResponseWriter, req *http.Request)

Types

type InfoParams

type InfoParams struct {
	PollId string `json:"pollId"`
}

type Params

type Params struct {
	// The id of the poll
	PollId string `json:"pollId"`
	// The name of the option the user chose
	Vote []string `json:"vote"`
}

Jump to

Keyboard shortcuts

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