live

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SizingTypeStoryPoints = "STORY_POINTS"
	SizingTypeTShirt      = "T_SHIRT"
)

Variables

View Source
var (
	SizingValueStoryPoints = []string{"1", "2", "3", "5", "8", "13", "20", "40", "﹖"} //nolint:gochecknoglobals
	SizingValueTShirt      = []string{"XS", "S", "M", "L", "XL", "XXL", "﹖"}          //nolint:gochecknoglobals
)

Functions

This section is empty.

Types

type Event

type Event struct {
	Kind string
	Data []byte
}

func (Event) Write

func (evt Event) Write(w io.Writer) error

type Service

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

func NewService

func NewService(
	done <-chan struct{},
	cfg internal.Config,
	clk internal.Clock,
	rdr echo.Renderer,
	repo *db.Repository,
) *Service

func (*Service) AddTicketToHistory

func (svc *Service) AddTicketToHistory(ctx context.Context, sessionID string, usr internal.User) error

func (*Service) Join

func (svc *Service) Join(ctx context.Context, sessionID string, usr internal.User, events chan Event) error

func (*Service) Leave

func (svc *Service) Leave(sessionID string, usr internal.User)

func (*Service) ResetSession

func (svc *Service) ResetSession(sessionID string) error

func (*Service) SetSizingValue

func (svc *Service) SetSizingValue(sessionID, sizingValue string, usr internal.User) error

func (*Service) SwitchSizingType

func (svc *Service) SwitchSizingType(ctx context.Context, sessionID, sizingType string) error

func (*Service) ToggleSizings

func (svc *Service) ToggleSizings(sessionID string) error

func (*Service) UpdateTicket added in v0.0.4

func (svc *Service) UpdateTicket(sessionID, summary, url string, usr internal.User) error

Jump to

Keyboard shortcuts

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