clientTracking

package
v0.0.0-...-1d800d4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProjectExpiry    = time.Hour
	UserExpiry       = 15 * time.Minute
	RefreshUserEvery = UserExpiry - 1*time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	GetConnectedClients(ctx context.Context, client *types.Client) (json.RawMessage, error)
	RefreshClientPositions(ctx context.Context, rooms editorEvents.Rooms) error
	UpdatePosition(ctx context.Context, client *types.Client, position types.ClientPosition) error
	FlushRoomChanges(projectId sharedTypes.UUID, rc types.RoomChanges)
}

func New

func New(client redis.UniversalClient, c channel.Writer) Manager

Jump to

Keyboard shortcuts

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