websocket

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: EUPL-1.2 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialAPI

func DialAPI(ctx context.Context, url string) (*websocket.Conn, error)

func Listen

func Listen(ctx context.Context, hostPort string, ch chan<- StatusChange)

func URLForAPI

func URLForAPI(hostPort string) string

Types

type Status

type Status struct {
	Mixers map[string]struct {
		FaderStatus map[string]struct {
			MuteState string `json:"mute_state"`
		} `json:"fader_status"`
	} `json:"mixers"`
}

type StatusChange

type StatusChange struct {
	Old, New Status
}

type StatusResponse

type StatusResponse struct {
	ID   int `json:"id"`
	Data struct {
		Status json.RawMessage `json:"Status"`
	} `json:"data"`
}

Jump to

Keyboard shortcuts

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