Versions in this module Expand all Collapse all v0 v0.0.1 Aug 7, 2020 Changes in this version + type ChangeNotifier func(ctx context.Context, updated CompleteSessionView) error + func NewChangeNotifier(dynamo DynamoClient, watcherTable string, ...) ChangeNotifier + type CompleteSessionView struct + Facilitator User + FacilitatorPoints bool + FacilitatorSessionKey string + Participants []User + SessionID string + VotesShown bool + type Disconnector func(ctx context.Context, connectionID string) error + func NewDisconnector(dynamo DynamoClient, tableName string, locker lock.GlobalLockAppropriator, ...) Disconnector + type DynamoClient interface + DeleteItemWithContext func(ctx aws.Context, input *dynamodb.DeleteItemInput, opts ...request.Option) (*dynamodb.DeleteItemOutput, error) + GetItemWithContext func(ctx aws.Context, input *dynamodb.GetItemInput, opts ...request.Option) (*dynamodb.GetItemOutput, error) + PutItemWithContext func(ctx aws.Context, input *dynamodb.PutItemInput, opts ...request.Option) (*dynamodb.PutItemOutput, error) + type InterestRecorder func(ctx context.Context, sessionID string, connectionID string) error + func NewInterestRecorder(dynamo DynamoClient, sessionTable string, watcherTable string, ...) InterestRecorder + type JoinSessionRequest struct + SessionID string + User User + type LoadFacilitatorSessionRequest struct + FacilitatorSessionKey string + MarkActive bool + SessionID string + type LoadSessionRequest struct + SessionID string + type Loader func(ctx context.Context, sessionID string) (*CompleteSessionView, error) + func NewLoader(dynamo DynamoClient, tableName string) Loader + type ParticipantSessionView struct + Facilitator User + FacilitatorPoints bool + Participants []User + SessionID string + VotesShown bool + func ToParticipantView(s CompleteSessionView, connectionID string) ParticipantSessionView + type Saver func(ctx context.Context, toSave CompleteSessionView) error + func NewSaver(dynamo DynamoClient, tableName string, notifyObservers ChangeNotifier, ...) Saver + type ShowVotesRequest struct + FacilitatorSessionKey string + SessionID string + type StartRequest struct + Facilitator User + FacilitatorPoints bool + type Starter func(ctx context.Context, toStart StartRequest) (CompleteSessionView, error) + func NewStarter(dynamo DynamoClient, tableName string, sessionExpiration time.Duration) Starter + type User struct + CurrentVote *string + Handle string + Name string + SocketID string + UserID string + type VoteRequest struct + SessionID string + Vote string