presence

package
v0.4.19 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package presence provides the proxy for the innerpresence.Presence to be manipulated from the outside. TODO(hackerwins): Consider to remove this package. It is used to solve the problem of cyclic dependency between pkg/document/presence and pkg/document/change.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Presence

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

Presence represents a proxy for the Presence to be manipulated from the outside.

func New

func New(ctx *change.Context, presence innerpresence.Presence) *Presence

New creates a new instance of Presence.

func (*Presence) Clear

func (p *Presence) Clear()

Clear clears the value of the given key.

func (*Presence) Initialize

func (p *Presence) Initialize(presence innerpresence.Presence)

Initialize initializes the presence.

func (*Presence) Set

func (p *Presence) Set(key string, value string)

Set sets the value of the given key.

Jump to

Keyboard shortcuts

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