Documentation ¶
Index ¶
- Constants
- func DefaultActionHandler(input any, output any, ctx *fasthttp.RequestCtx, uuid string) error
- func ParseSOAPAction(ctx *fasthttp.RequestCtx) (*soap.SoapAction, error)
- func ResponseError(ctx *fasthttp.RequestCtx, e *soap.Error) error
- func ServiceNS(service string, ver int) string
- type Action
- type ActionArgumentIn
- type ActionArgumentOut
- type ActionHandler
- type Argument
- type Controller
- func (c *Controller) ControlHttpPath(uuid string) string
- func (c *Controller) DeInit()
- func (c *Controller) EventHttpPath(uuid string) string
- func (c *Controller) Init(ctx context.Context) error
- func (c *Controller) SCPDHttpPath(uuid string) string
- func (c *Controller) ServiceId(auth string) string
- func (c *Controller) ServiceURN(auth string) string
- type ServiceController
Constants ¶
View Source
const ( DeviceType_MediaServer = "MediaServer" DeviceType_MediaRenderer = "MediaRenderer" ServiceName_AVTransport = "AVTransport" ServiceName_ConnectionManager = "ConnectionManager" ServiceName_RenderingControl = "RenderingControl" )
View Source
const ResponseContentTypeXML = `text/xml; charset="utf-8"`
Variables ¶
This section is empty.
Functions ¶
func DefaultActionHandler ¶
func ParseSOAPAction ¶
func ParseSOAPAction(ctx *fasthttp.RequestCtx) (*soap.SoapAction, error)
func ResponseError ¶
func ResponseError(ctx *fasthttp.RequestCtx, e *soap.Error) error
Types ¶
type Action ¶
type Action struct { Handler ActionHandler ArgIn any ArgOut any Name string // contains filtered or unexported fields }
type ActionArgumentIn ¶
type ActionArgumentIn interface { }
type ActionArgumentOut ¶
type ActionArgumentOut interface { }
type ActionHandler ¶
type Controller ¶
type Controller struct { SpecVersion scpd.SpecVersion ServiceName string PrefixPath string event.Event Actions []*Action SCPDHandler httpHandler ControlHandler httpHandler EventHandler httpHandler // contains filtered or unexported fields }
func (*Controller) ControlHttpPath ¶
func (c *Controller) ControlHttpPath(uuid string) string
func (*Controller) DeInit ¶
func (c *Controller) DeInit()
func (*Controller) EventHttpPath ¶
func (c *Controller) EventHttpPath(uuid string) string
func (*Controller) SCPDHttpPath ¶
func (c *Controller) SCPDHttpPath(uuid string) string
func (*Controller) ServiceId ¶
func (c *Controller) ServiceId(auth string) string
func (*Controller) ServiceURN ¶
func (c *Controller) ServiceURN(auth string) string
type ServiceController ¶
Click to show internal directories.
Click to hide internal directories.