server

package
v0.0.0-...-77d204d Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttendantsInitialState

type AttendantsInitialState struct {
	Type string         `json:"type"`
	IDs  []refs.FeedRef `json:"ids"`
}

AttendantsInitialState is emitted the first time the stream is opened

type AttendantsUpdate

type AttendantsUpdate struct {
	Type string       `json:"type"`
	ID   refs.FeedRef `json:"id"`
}

AttendantsUpdate is emitted if a single member joins or leaves. Type is either 'joined' or 'left'.

type ConnectArg

type ConnectArg struct {
	Portal refs.FeedRef `json:"portal"` // the room server
	Target refs.FeedRef `json:"target"` // which peer the initiator/caller wants to be tunneld to
}

type Handler

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

func (*Handler) RegisterRoom

func (h *Handler) RegisterRoom(mux typemux.HandlerMux)

func (*Handler) RegisterTunnel

func (h *Handler) RegisterTunnel(mux typemux.HandlerMux)

type MetadataReply

type MetadataReply struct {
	Name       string   `json:"name"`
	Membership bool     `json:"membership"`
	Features   []string `json:"features"`
}

Jump to

Keyboard shortcuts

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