server

package
v0.0.0-...-f8e79a6 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewStatic

func NewStatic(ip string) (*Server, error)

NewStatic returns a server connected to a specified IP.

func (*Server) GetBlob

func (s *Server) GetBlob(ctx context.Context, kind, key string) ([]byte, error)

func (*Server) IP

func (s *Server) IP() string

IP returns the current IP of the server.

func (*Server) SendControl

func (s *Server) SendControl(ctx context.Context, cmd string) ([]byte, error)

SendControl sends a HTTP Get to the YamahaExtendedControl port.

func (*Server) SendSubscribeUDP

func (s *Server) SendSubscribeUDP(ctx context.Context, port int) error

func (*Server) SendUpnp

func (s *Server) SendUpnp(ctx context.Context, action string, payload []byte) error

Jump to

Keyboard shortcuts

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