Documentation ¶
Index ¶
- func SetDefaultHTTPFlagsPrefix(prefix string)
- func SetDefaultHTTPIdleTimeout(val time.Duration)
- func SetDefaultHTTPMaxHeaderBytes(val int)
- func SetDefaultHTTPName(name string)
- func SetDefaultHTTPPort(val string)
- func SetDefaultHTTPReadHeaderTimeout(val time.Duration)
- func SetDefaultHTTPReadTimeout(val time.Duration)
- func SetDefaultHTTPRunnable(b bool)
- func SetDefaultHTTPSFlagsPrefix(prefix string)
- func SetDefaultHTTPSIdleTimeout(val time.Duration)
- func SetDefaultHTTPSMaxHeaderBytes(val int)
- func SetDefaultHTTPSName(name string)
- func SetDefaultHTTPSPort(val string)
- func SetDefaultHTTPSReadHeaderTimeout(val time.Duration)
- func SetDefaultHTTPSReadTimeout(val time.Duration)
- func SetDefaultHTTPSRunnable(b bool)
- func SetDefaultHTTPSWriterTimeout(val time.Duration)
- func SetDefaultHTTPWriterTimeout(val time.Duration)
- type HTTP
- type HTTPS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefaultHTTPFlagsPrefix ¶
func SetDefaultHTTPFlagsPrefix(prefix string)
func SetDefaultHTTPMaxHeaderBytes ¶
func SetDefaultHTTPMaxHeaderBytes(val int)
func SetDefaultHTTPName ¶
func SetDefaultHTTPName(name string)
func SetDefaultHTTPPort ¶
func SetDefaultHTTPPort(val string)
func SetDefaultHTTPRunnable ¶
func SetDefaultHTTPRunnable(b bool)
func SetDefaultHTTPSFlagsPrefix ¶
func SetDefaultHTTPSFlagsPrefix(prefix string)
func SetDefaultHTTPSMaxHeaderBytes ¶
func SetDefaultHTTPSMaxHeaderBytes(val int)
func SetDefaultHTTPSName ¶
func SetDefaultHTTPSName(name string)
func SetDefaultHTTPSPort ¶
func SetDefaultHTTPSPort(val string)
func SetDefaultHTTPSRunnable ¶
func SetDefaultHTTPSRunnable(b bool)
Types ¶
type HTTP ¶
type HTTP struct { Name string `json:"name" yaml:"name"` Runnable bool `mapstructure:"http" json:"runnable" yaml:"runnable"` Port string `json:"port" yaml:"port"` ReadTimeout time.Duration `json:"read-timeout" yaml:"read-timeout"` ReadHeaderTimeout time.Duration `json:"read-header-timeout" yaml:"read-header-timeout"` WriteTimeout time.Duration `json:"write-timeout" yaml:"write-timeout"` IdleTimeout time.Duration `json:"idle-timeout" yaml:"idle-timeout"` MaxHeaderBytes int `json:"max-header-bytes" yaml:"max-header-bytes"` // CustomBindFlagsFunc defines custom bind flags behaviour for structure, if CustomBindFlagsFunc is nil, default bind flags behaviour will be used CustomBindFlagsFunc func(fs *bootflag.FlagSet) `json:"-" yaml:"-"` // CustomParseFunc defines custom parse behaviour for structure, if CustomParseFunc is nil, default parse behaviour will be used CustomParseFunc func() (err error) `json:"-" yaml:"-"` }
func (*HTTP) GetIntPort ¶
type HTTPS ¶
type HTTPS struct { Name string `json:"name" yaml:"name"` Runnable bool `json:"runnable" yaml:"runnable"` Port string `json:"port" yaml:"port"` ReadTimeout time.Duration `json:"read-timeout" yaml:"read-timeout"` ReadHeaderTimeout time.Duration `json:"read-header-timeout" yaml:"read-header-timeout"` WriteTimeout time.Duration `json:"write-timeout" yaml:"write-timeout"` IdleTimeout time.Duration `json:"idle-timeout" yaml:"idle-timeout"` MaxHeaderBytes int `json:"max-header-bytes" yaml:"max-header-bytes"` Cert string `json:"cert" yaml:"cert"` Key string `json:"key" yaml:"key"` // CustomBindFlagsFunc defines custom bind flags behaviour for structure, if CustomBindFlagsFunc is nil, default bind flags behaviour will be used CustomBindFlagsFunc func(fs *bootflag.FlagSet) `json:"-" yaml:"-"` // CustomParseFunc defines custom parse behaviour for structure, if CustomParseFunc is nil, default parse behaviour will be used CustomParseFunc func() (err error) `json:"-" yaml:"-"` }
func (*HTTPS) GetIntPort ¶
Click to show internal directories.
Click to hide internal directories.