store

package
v0.0.0-...-e666526 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func New

func New() (*Store, error)

func (*Store) AddVoteToBacklog

func (s *Store) AddVoteToBacklog(v models.VoteRow)

func (*Store) BootStrap

func (s *Store) BootStrap()

func (*Store) BroadcastVotes

func (s *Store) BroadcastVotes(html string, clientID string)

func (*Store) GetBacklog

func (s *Store) GetBacklog() []models.VoteRow

func (*Store) GetPollData

func (s *Store) GetPollData() models.PollData

func (*Store) HandleBroadcast

func (s *Store) HandleBroadcast()

func (*Store) Incr

func (s *Store) Incr(voteType models.VoteType) error

func (*Store) RegisterClient

func (s *Store) RegisterClient(client chan string, sessionID string)

func (*Store) SyncBacklog

func (s *Store) SyncBacklog() error

func (*Store) UnRegisterClient

func (s *Store) UnRegisterClient(client chan string)

Jump to

Keyboard shortcuts

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