upnp

package
v0.0.0-...-a1b9eeb Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	Name    string
	Type    string
	Version uint
	// contains filtered or unexported fields
}

func NewDevice

func NewDevice(name, deviceType string, ver uint) *Device

func (*Device) RegisterService

func (dev *Device) RegisterService(svc *Service)

func (*Device) ServeHTTP

func (dev *Device) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Device) ServiceURNs

func (dev *Device) ServiceURNs() []string

func (*Device) Services

func (dev *Device) Services() map[string]*Service

func (*Device) UDN

func (dev *Device) UDN() string

func (*Device) URN

func (dev *Device) URN() string

type Server

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

func NewServer

func NewServer(dev *Device, addr string) (*Server, error)

func (*Server) Close

func (srv *Server) Close() error

func (*Server) ListenAndServe

func (srv *Server) ListenAndServe() error

type Service

type Service struct {
	Type    string
	Version uint
	// contains filtered or unexported fields
}

func NewService

func NewService(serviceType string, ver uint) *Service

func (*Service) HandleRequest

func (svc *Service) HandleRequest(req *soap.Request) *soap.Response

func (*Service) RegisterAction

func (svc *Service) RegisterAction(name string, handler func(*soap.Request, *soap.Response))

func (*Service) URN

func (svc *Service) URN() string

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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