Documentation ¶
Index ¶
- Variables
- func SendSoap(httpClient *http.Client, endpoint, message string, headers map[string]string) (*http.Response, error)
- func SendSoapWithCtx(ctx context.Context, httpClient *http.Client, endpoint, message string, ...) (*http.Response, error)
- type Request
- func (r *Request) Do() *Response
- func (r *Request) WithContext(ctx context.Context) *Request
- func (r *Request) WithEndpoint(endpoint string) *Request
- func (r *Request) WithHeaders(headers map[string]string) *Request
- func (r *Request) WithHttpClient(httpClient *http.Client) *Request
- func (r *Request) WithUsernamePassword(username, password string) *Request
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var Xlmns = map[string]string{
"onvif": "http://www.onvif.org/ver10/schema",
"tds": "http://www.onvif.org/ver10/device/wsdl",
"trt": "http://www.onvif.org/ver10/media/wsdl",
"tev": "http://www.onvif.org/ver10/events/wsdl",
"tptz": "http://www.onvif.org/ver20/ptz/wsdl",
"timg": "http://www.onvif.org/ver20/imaging/wsdl",
"tan": "http://www.onvif.org/ver20/analytics/wsdl",
"xmime": "http://www.w3.org/2005/05/xmlmime",
"wsnt": "http://docs.oasis-open.org/wsn/b-2",
"xop": "http://www.w3.org/2004/08/xop/include",
"wsa": "http://www.w3.org/2005/08/addressing",
"wstop": "http://docs.oasis-open.org/wsn/t-1",
"wsntw": "http://docs.oasis-open.org/wsn/bw-2",
"wsrf-rw": "http://docs.oasis-open.org/wsrf/rw-2",
"wsaw": "http://www.w3.org/2006/05/addressing/wsdl",
}
Xlmns XML Scheam
Functions ¶
Types ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func NewRequest ¶
func NewRequest(device device, method interface{}) *Request
func (*Request) WithEndpoint ¶
func (*Request) WithHeaders ¶ added in v1.0.1
func (*Request) WithUsernamePassword ¶
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func (*Response) SetResponse ¶
Click to show internal directories.
Click to hide internal directories.