cmd

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "oscsync",
	Short: "Sync programs via OSC",
	Long:  `Sync programs via OSC`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

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

Types

type Server

type Server struct {
	ServerConfig
	// contains filtered or unexported fields
}

Server runs an oscsync server.

func NewServer

func NewServer(config ServerConfig) (*Server, error)

NewServer creates a new oscsync server.

func (*Server) HandleSlaveAdd added in v0.1.1

func (srv *Server) HandleSlaveAdd(m osc.Message) error

HandleSlaveAdd handles the OSC message to add a slave.

func (*Server) HandleSlaveRemove added in v0.1.1

func (srv *Server) HandleSlaveRemove(m osc.Message) error

HandleSlaveRemove handles the OSC message to remove a slave.

func (*Server) HandleTempo

func (srv *Server) HandleTempo(m osc.Message) error

HandleTempo handles tempo updates.

func (*Server) Main added in v0.1.1

func (srv *Server) Main(ctx context.Context) error

Main is the main loop of the server.

func (*Server) Run

func (srv *Server) Run() error

Run runs an oscsync server.

type ServerConfig

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

ServerConfig contains configurationn for an oscsync server.

Jump to

Keyboard shortcuts

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