ui

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Copyright (C) 2019-2023 David Florness SPDX-License-Identifier: MPL-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateElectionTUI

func CreateElectionTUI(kill <-chan error) (title string, candidates []election.Candidate)

func ElectionWaitTUI

func ElectionWaitTUI(kill <-chan error, client *mautrix.Client, el *election.Election, eventStore *election.EventStore) (err error)

func RoomListTUI

func RoomListTUI(kill <-chan error, store *matrix.TallyardStore, localUserID id.UserID, syncer mautrix.ExtensibleSyncer) (*election.Room, error)

displays a TUI of rooms that the user may choose from. This presumes that the store is already properly saving rooms

func RoomTUI

func RoomTUI(kill <-chan error, client *mautrix.Client, room *election.Room, electionsMap *election.ElectionsMap, syncer mautrix.ExtensibleSyncer) (el *election.Election, err error)

func VoteTUI

func VoteTUI(kill <-chan error, candidates []election.Candidate) (ballot *[][]byte, err error)

displays a voting UI to the user and returns the encoded ballot

Types

This section is empty.

Jump to

Keyboard shortcuts

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