Documentation ¶
Index ¶
- type Service
- func (p *Service) AddUserToSession(sessionId string, userId string) error
- func (p *Service) CastVote(sessionId string, userId string, estimate string) (model.PendingVote, error)
- func (p *Service) Config() config.Config
- func (p *Service) CreateSession() (model.Session, error)
- func (p *Service) CreateUser(sessionId string, userName string, isAdmin bool, isObserver bool) (model.User, error)
- func (p *Service) FinishVote(sessionId string) error
- func (p *Service) GetUser(userId string) (model.User, error)
- func (p *Service) GetVoteResult(sInputs []string) (string, error)
- func (p *Service) Hub() IHub
- func (p *Service) IsVoteFinished(sessionId string) (bool, error)
- func (p *Service) Release()
- func (p *Service) RemoveObserver(sessionId string, userId string) error
- func (p *Service) RemoveUserFromSession(sessionId string, userId string) error
- func (p *Service) StartVote(sessionId string) error
- func (p *Service) Store() *db.Store
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 (*Service) AddUserToSession ¶
func (*Service) CreateUser ¶
func (*Service) FinishVote ¶
func (*Service) RemoveObserver ¶
func (*Service) RemoveUserFromSession ¶
Click to show internal directories.
Click to hide internal directories.