cmd

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CompanionAddr string
View Source
var Debug bool

Debug controls whether or not to enable debug level logging.

View Source
var Port string

Port to listen for OSC messages.

View Source
var ServerPort string

Port to listen for HTTP.

Functions

func ConnectIPC added in v0.2.3

func ConnectIPC(socketName string) (net.Conn, error)

func Execute

func Execute(v string)

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetIPCName added in v0.2.3

func GetIPCName() string

Types

type Lighting added in v0.2.12

type Lighting struct{}

func (*Lighting) ServeHTTP added in v0.2.12

func (l *Lighting) ServeHTTP(w http.ResponseWriter, r *http.Request)

type MpvCommandId added in v0.2.4

type MpvCommandId int
const (
	Position MpvCommandId = iota
	PlaytimeRemaining
)

type Switcher added in v0.2.12

type Switcher struct{}

func (*Switcher) ServeHTTP added in v0.2.12

func (s *Switcher) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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