Help us shape the future of Go! Take the 2026 Go Developer Survey

ipc

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandVoiceJoin  = "voice_join"
	CommandVoiceLeave = "voice_leave"
	CommandMute       = "mute"
	CommandUnmute     = "unmute"
	CommandIdentify   = "identify"
	CommandPing       = "ping"

	EventVoiceReady     = "voice_ready"
	EventVoiceConnected = "voice_connected"
	EventVoiceMembers   = "voice_members"
	EventUserSpeaking   = "user_speaking"
	EventInfo           = "info"
	EventError          = "error"
	EventPong           = "pong"
)

Variables

This section is empty.

Functions

func Dial

func Dial(addr string) (net.Conn, error)

func Listen

func Listen(addr string) (net.Listener, error)

func NewDecoder

func NewDecoder(r interface{ Read([]byte) (int, error) }) *json.Decoder

func NewEncoder

func NewEncoder(w interface{ Write([]byte) (int, error) }) *json.Encoder

Types

type Message

type Message struct {
	Cmd    string   `json:"cmd,omitempty"`
	Event  string   `json:"event,omitempty"`
	Room   string   `json:"room,omitempty"`
	User   string   `json:"user,omitempty"`
	Users  []string `json:"users,omitempty"`
	Active bool     `json:"active,omitempty"`
	Error  string   `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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