virtuallinein

package
v0.0.0-...-cbcd650 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package virtuallinein is a generated VirtualLineIn package.

Index

Constants

View Source
const (
	ServiceURN     = "urn:schemas-upnp-org:service:VirtualLineIn:1"
	EncodingSchema = "http://schemas.xmlsoap.org/soap/encoding/"
	EnvelopeSchema = "http://schemas.xmlsoap.org/soap/envelope/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrentTrackMetaData

type CurrentTrackMetaData string

type NextArgs

type NextArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
}

type NextResponse

type NextResponse struct {
}

type PauseArgs

type PauseArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
}

type PauseResponse

type PauseResponse struct {
}

type PlayArgs

type PlayArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
	Speed      string `xml:"Speed"`
}

type PlayResponse

type PlayResponse struct {
}

type PreviousArgs

type PreviousArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
}

type PreviousResponse

type PreviousResponse struct {
}

type Property

type Property struct {
	XMLName              xml.Name              `xml:"property"`
	CurrentTrackMetaData *CurrentTrackMetaData `xml:"CurrentTrackMetaData"`
}

type Service

type Service struct {
	CurrentTrackMetaData *CurrentTrackMetaData
	// contains filtered or unexported fields
}

func NewService

func NewService(opts ...ServiceOption) *Service

func (*Service) Client

func (s *Service) Client() *http.Client

func (*Service) ControlEndpoint

func (s *Service) ControlEndpoint() *url.URL

func (*Service) EventEndpoint

func (s *Service) EventEndpoint() *url.URL

func (*Service) Location

func (s *Service) Location() *url.URL

func (*Service) Next

func (s *Service) Next(args *NextArgs) (*NextResponse, error)

func (*Service) ParseEvent

func (zp *Service) ParseEvent(body []byte) []interface{}

func (*Service) Pause

func (s *Service) Pause(args *PauseArgs) (*PauseResponse, error)

func (*Service) Play

func (s *Service) Play(args *PlayArgs) (*PlayResponse, error)

func (*Service) Previous

func (s *Service) Previous(args *PreviousArgs) (*PreviousResponse, error)

func (*Service) SetVolume

func (s *Service) SetVolume(args *SetVolumeArgs) (*SetVolumeResponse, error)

func (*Service) StartTransmission

func (s *Service) StartTransmission(args *StartTransmissionArgs) (*StartTransmissionResponse, error)

func (*Service) Stop

func (s *Service) Stop(args *StopArgs) (*StopResponse, error)

func (*Service) StopTransmission

func (s *Service) StopTransmission(args *StopTransmissionArgs) (*StopTransmissionResponse, error)

type ServiceOption

type ServiceOption func(*Service)

func WithClient

func WithClient(c *http.Client) ServiceOption

func WithLocation

func WithLocation(u *url.URL) ServiceOption

type SetVolumeArgs

type SetVolumeArgs struct {
	Xmlns         string `xml:"xmlns:u,attr"`
	InstanceID    uint32 `xml:"InstanceID"`
	DesiredVolume uint16 `xml:"DesiredVolume"`
}

type SetVolumeResponse

type SetVolumeResponse struct {
}

type StartTransmissionArgs

type StartTransmissionArgs struct {
	Xmlns         string `xml:"xmlns:u,attr"`
	InstanceID    uint32 `xml:"InstanceID"`
	CoordinatorID string `xml:"CoordinatorID"`
}

type StartTransmissionResponse

type StartTransmissionResponse struct {
	CurrentTransportSettings string `xml:"CurrentTransportSettings"`
}

type StopArgs

type StopArgs struct {
	Xmlns      string `xml:"xmlns:u,attr"`
	InstanceID uint32 `xml:"InstanceID"`
}

type StopResponse

type StopResponse struct {
}

type StopTransmissionArgs

type StopTransmissionArgs struct {
	Xmlns         string `xml:"xmlns:u,attr"`
	InstanceID    uint32 `xml:"InstanceID"`
	CoordinatorID string `xml:"CoordinatorID"`
}

type StopTransmissionResponse

type StopTransmissionResponse struct {
}

type UpnpEvent

type UpnpEvent struct {
	XMLName      xml.Name   `xml:"propertyset"`
	XMLNameSpace string     `xml:"xmlns:e,attr"`
	Properties   []Property `xml:"property"`
}

Jump to

Keyboard shortcuts

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