ws

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientReady

type ClientReady struct {
	Event string `json:"event"`
	Data  struct {
		Component string `json:"component"`
		Type      string `json:"type"`
		PadID     string `json:"padId"`
		Token     string `json:"token"`
		UserInfo  struct {
			ColorId *string `json:"colorId"`
			Name    *string `json:"name"`
		} `json:"userInfo"`
		Reconnect *bool `json:"reconnect"`
	} `json:"data"`
}

type Session

type Session struct {
	Author        string
	Auth          *SessionAuth
	Revision      int
	PadId         string
	ReadOnlyPadId string
	ReadOnly      bool
	Time          int
}

type SessionAuth

type SessionAuth struct {
	PadId     string
	Token     string
	SessionId string
}

type UserChange

type UserChange struct {
	Event string `json:"event"`
	Data  struct {
		Component string `json:"component"`
		Data      struct {
			Apool struct {
				NumToAttrib map[int][]string `json:"numToAttrib"`
				NextNum     int              `json:"nextNum"`
			} `json:"apool"`
			BaseRev   int    `json:"baseRev"`
			Changeset string `json:"changeset"`
		} `json:"data"`
		Type string `json:"type"`
	} `json:"data"`
}

type UserNewInfo

type UserNewInfo struct {
	Type string          `json:"type"`
	Data UserNewInfoData `json:"data"`
}

type UserNewInfoDat

type UserNewInfoDat struct {
	UserId  string `json:"userId"`
	Name    string `json:"name"`
	ColorId string `json:"colorId"`
}

type UserNewInfoData

type UserNewInfoData struct {
	Type     string         `json:"type"`
	UserInfo UserNewInfoDat `json:"userInfo"`
}

Jump to

Keyboard shortcuts

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