service

package
v0.0.0-...-d73b14a Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(config config.Config) Service

func (*Service) AddUserToSession

func (p *Service) AddUserToSession(sessionId string, userId string) error

func (*Service) CastVote

func (p *Service) CastVote(sessionId string, userId string, estimate string) (model.PendingVote, error)

func (*Service) Config

func (p *Service) Config() config.Config

func (*Service) CreateSession

func (p *Service) CreateSession() (model.Session, error)

func (*Service) CreateUser

func (p *Service) CreateUser(sessionId string, userName string, isAdmin bool, isObserver bool) (model.User, error)

func (*Service) FinishVote

func (p *Service) FinishVote(sessionId string) error

func (*Service) GetUser

func (p *Service) GetUser(userId string) (model.User, error)

func (*Service) GetVoteResult

func (p *Service) GetVoteResult(sInputs []string) (string, error)

func (*Service) Hub

func (p *Service) Hub() IHub

func (*Service) IsVoteFinished

func (p *Service) IsVoteFinished(sessionId string) (bool, error)

func (*Service) Release

func (p *Service) Release()

func (*Service) RemoveObserver

func (p *Service) RemoveObserver(sessionId string, userId string) error

func (*Service) RemoveUserFromSession

func (p *Service) RemoveUserFromSession(sessionId string, userId string) error

func (*Service) StartVote

func (p *Service) StartVote(sessionId string) error

func (*Service) Store

func (p *Service) Store() *db.Store

Jump to

Keyboard shortcuts

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