wswire

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CtrlAuth       = "auth"
	CtrlSubscribe  = "subscribe"
	CtrlUnsub      = "unsubscribe"
	ConfirmPrefix  = "confirmed:"
	RejectedPrefix = "rejected:"
)
View Source
const (
	ScopeWorkspace = "workspace"
	ScopeUser      = "user"
)
View Source
const (
	CapBatch        = "batch"
	CapNotification = "notification"
	CapWorkspace    = "workspace"
)
View Source
const ConnectedFrameType = "connected"

Variables

This section is empty.

Functions

func Capabilities

func Capabilities() []string

func IsRegisteredScope

func IsRegisteredScope(name string) bool

func RegisterCapability

func RegisterCapability(name string) error

func RegisterScope

func RegisterScope(name string) error

func ScopeKey

func ScopeKey(prefix, id string) string

func WSName

func WSName(dotEvent string) string

Types

type Frame

type Frame struct {
	Type    string          `json:"type"`
	Payload json.RawMessage `json:"payload,omitempty"`
	EventID string          `json:"event_id,omitempty"`
}

Jump to

Keyboard shortcuts

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