File: parameters.go

package info (click to toggle)
golang-github-masterzen-winrm 0.0~git20160323.0752679-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 256 kB
  • ctags: 180
  • sloc: makefile: 34; sh: 14
file content (20 lines) | stat: -rw-r--r-- 461 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package winrm

import (
	"net/http"
)

type Parameters struct {
	Timeout            string
	Locale             string
	EnvelopeSize       int
	TransportDecorator func(*http.Transport) http.RoundTripper
}

func DefaultParameters() *Parameters {
	return NewParameters("PT60S", "en-US", 153600)
}

func NewParameters(timeout string, locale string, envelopeSize int) *Parameters {
	return &Parameters{Timeout: timeout, Locale: locale, EnvelopeSize: envelopeSize}
}