Documentation ¶
Index ¶
- type CalcResults
- type CookieData
- type Distribution
- type ReadyUser
- type Session
- func (session *Session) AllCardsSelected() bool
- func (session *Session) Calc() []CalcResults
- func (session *Session) Close()
- func (session *Session) DeleteUser(ID string)
- func (session Session) MultiRow() bool
- func (session *Session) NewUser(name string, userType UserType, isQA bool) *User
- func (session *Session) ReadyUsers() []ReadyUser
- func (session *Session) Reset()
- func (session *Session) SendUpdates()
- func (session *Session) WrapContext(ctx context.Context) context.Context
- type SessionInfo
- type User
- type UserInfo
- type UserType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CalcResults ¶
type CalcResults struct { Name string Dev, QA Distribution }
func NewCalcResults ¶
func NewCalcResults(name string) CalcResults
func (CalcResults) Total ¶ added in v1.2.0
func (r CalcResults) Total() Distribution
type CookieData ¶
type CookieData struct { User UserInfo Session SessionInfo }
type Distribution ¶ added in v1.2.0
type Distribution struct { Prefix string // contains filtered or unexported fields }
func NewDistribution ¶ added in v1.2.0
func NewDistribution(prefix string) Distribution
func (*Distribution) Add ¶ added in v1.2.0
func (d *Distribution) Add(card string)
func (Distribution) Any ¶ added in v1.2.0
func (d Distribution) Any() bool
func (Distribution) Avg ¶ added in v1.2.0
func (d Distribution) Avg() float64
func (Distribution) Distribution ¶ added in v1.2.0
func (d Distribution) Distribution() string
func (Distribution) Points ¶ added in v1.2.0
func (d Distribution) Points() string
type Session ¶
type Session struct { SessionInfo ID string Expires time.Time Showing bool Users map[string]*User // contains filtered or unexported fields }
func NewSession ¶
func NewSession(ID string, Expires time.Time, sessionInfo SessionInfo) *Session
func (*Session) AllCardsSelected ¶ added in v1.3.0
func (*Session) Calc ¶
func (session *Session) Calc() []CalcResults
func (*Session) DeleteUser ¶ added in v1.3.0
func (*Session) ReadyUsers ¶
func (*Session) SendUpdates ¶
func (session *Session) SendUpdates()
type SessionInfo ¶
func NewSessionInfo ¶
func NewSessionInfo(cards, rows []string, mapToFibonacci bool) SessionInfo
Click to show internal directories.
Click to hide internal directories.