Documentation
¶
Index ¶
- Constants
- func HTTPMethodStrings() []string
- func KeywordTypeStrings() []string
- func MonitorAuthTypeStrings() []string
- func MonitorTypeStrings() []string
- func POSTContentTypeStrings() []string
- func POSTTypeStrings() []string
- func PortTypeStrings() []string
- type HTTPMethod
- type KeywordType
- type MonitorAuthType
- func (i MonitorAuthType) IsAMonitorAuthType() bool
- func (i MonitorAuthType) MarshalJSON() ([]byte, error)
- func (i MonitorAuthType) MarshalText() ([]byte, error)
- func (i MonitorAuthType) String() string
- func (i *MonitorAuthType) UnmarshalJSON(data []byte) error
- func (i *MonitorAuthType) UnmarshalText(text []byte) error
- type MonitorType
- type POSTContentType
- func (i POSTContentType) IsAPOSTContentType() bool
- func (i POSTContentType) MarshalJSON() ([]byte, error)
- func (i POSTContentType) MarshalText() ([]byte, error)
- func (i POSTContentType) String() string
- func (i *POSTContentType) UnmarshalJSON(data []byte) error
- func (i *POSTContentType) UnmarshalText(text []byte) error
- type POSTType
- type PortType
- type Status
Constants ¶
const ( MonitorPaused = iota MonitorRunning )
Variables ¶
This section is empty.
Functions ¶
func HTTPMethodStrings ¶
func HTTPMethodStrings() []string
HTTPMethodStrings returns a slice of all String values of the enum
func KeywordTypeStrings ¶
func KeywordTypeStrings() []string
KeywordTypeStrings returns a slice of all String values of the enum
func MonitorAuthTypeStrings ¶
func MonitorAuthTypeStrings() []string
MonitorAuthTypeStrings returns a slice of all String values of the enum
func MonitorTypeStrings ¶
func MonitorTypeStrings() []string
MonitorTypeStrings returns a slice of all String values of the enum
func POSTContentTypeStrings ¶ added in v0.1.0
func POSTContentTypeStrings() []string
POSTContentTypeStrings returns a slice of all String values of the enum
func POSTTypeStrings ¶ added in v0.1.0
func POSTTypeStrings() []string
POSTTypeStrings returns a slice of all String values of the enum
func PortTypeStrings ¶
func PortTypeStrings() []string
PortTypeStrings returns a slice of all String values of the enum
Types ¶
type HTTPMethod ¶
type HTTPMethod uint8
const ( MethodHEAD HTTPMethod = iota + 1 MethodGET MethodPOST MethodPUT MethodPATCH MethodDELETE MethodOPTIONS )
func HTTPMethodString ¶
func HTTPMethodString(s string) (HTTPMethod, error)
HTTPMethodString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func HTTPMethodValues ¶
func HTTPMethodValues() []HTTPMethod
HTTPMethodValues returns all values of the enum
func (HTTPMethod) IsAHTTPMethod ¶
func (i HTTPMethod) IsAHTTPMethod() bool
IsAHTTPMethod returns "true" if the value is listed in the enum definition. "false" otherwise
func (HTTPMethod) MarshalJSON ¶
func (i HTTPMethod) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface for HTTPMethod
func (HTTPMethod) MarshalText ¶ added in v0.1.0
func (i HTTPMethod) MarshalText() ([]byte, error)
MarshalText implements the encoding.TextMarshaler interface for HTTPMethod
func (HTTPMethod) String ¶
func (i HTTPMethod) String() string
func (*HTTPMethod) UnmarshalJSON ¶
func (i *HTTPMethod) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface for HTTPMethod
func (*HTTPMethod) UnmarshalText ¶ added in v0.1.0
func (i *HTTPMethod) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface for HTTPMethod
type KeywordType ¶
type KeywordType uint8
const ( KeywordExists KeywordType = iota + 1 KeywordNotExists )
func KeywordTypeString ¶
func KeywordTypeString(s string) (KeywordType, error)
KeywordTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func KeywordTypeValues ¶
func KeywordTypeValues() []KeywordType
KeywordTypeValues returns all values of the enum
func (KeywordType) IsAKeywordType ¶
func (i KeywordType) IsAKeywordType() bool
IsAKeywordType returns "true" if the value is listed in the enum definition. "false" otherwise
func (KeywordType) MarshalJSON ¶
func (i KeywordType) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface for KeywordType
func (KeywordType) MarshalText ¶ added in v0.1.0
func (i KeywordType) MarshalText() ([]byte, error)
MarshalText implements the encoding.TextMarshaler interface for KeywordType
func (KeywordType) String ¶
func (i KeywordType) String() string
func (*KeywordType) UnmarshalJSON ¶
func (i *KeywordType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface for KeywordType
func (*KeywordType) UnmarshalText ¶ added in v0.1.0
func (i *KeywordType) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface for KeywordType
type MonitorAuthType ¶
type MonitorAuthType uint8
const ( AuthBasic MonitorAuthType = iota + 1 AuthDigest )
func MonitorAuthTypeString ¶
func MonitorAuthTypeString(s string) (MonitorAuthType, error)
MonitorAuthTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func MonitorAuthTypeValues ¶
func MonitorAuthTypeValues() []MonitorAuthType
MonitorAuthTypeValues returns all values of the enum
func (MonitorAuthType) IsAMonitorAuthType ¶
func (i MonitorAuthType) IsAMonitorAuthType() bool
IsAMonitorAuthType returns "true" if the value is listed in the enum definition. "false" otherwise
func (MonitorAuthType) MarshalJSON ¶
func (i MonitorAuthType) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface for MonitorAuthType
func (MonitorAuthType) MarshalText ¶ added in v0.1.0
func (i MonitorAuthType) MarshalText() ([]byte, error)
MarshalText implements the encoding.TextMarshaler interface for MonitorAuthType
func (MonitorAuthType) String ¶
func (i MonitorAuthType) String() string
func (*MonitorAuthType) UnmarshalJSON ¶
func (i *MonitorAuthType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface for MonitorAuthType
func (*MonitorAuthType) UnmarshalText ¶ added in v0.1.0
func (i *MonitorAuthType) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface for MonitorAuthType
type MonitorType ¶
type MonitorType uint8
const ( TypeHTTPS MonitorType = iota + 1 TypeKeyword TypePing TypePort TypeHeartbeat )
func MonitorTypeString ¶
func MonitorTypeString(s string) (MonitorType, error)
MonitorTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func MonitorTypeValues ¶
func MonitorTypeValues() []MonitorType
MonitorTypeValues returns all values of the enum
func (MonitorType) IsAMonitorType ¶
func (i MonitorType) IsAMonitorType() bool
IsAMonitorType returns "true" if the value is listed in the enum definition. "false" otherwise
func (MonitorType) MarshalJSON ¶
func (i MonitorType) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface for MonitorType
func (MonitorType) MarshalText ¶ added in v0.1.0
func (i MonitorType) MarshalText() ([]byte, error)
MarshalText implements the encoding.TextMarshaler interface for MonitorType
func (MonitorType) String ¶
func (i MonitorType) String() string
func (*MonitorType) UnmarshalJSON ¶
func (i *MonitorType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface for MonitorType
func (*MonitorType) UnmarshalText ¶ added in v0.1.0
func (i *MonitorType) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface for MonitorType
type POSTContentType ¶ added in v0.1.0
type POSTContentType uint8
const ( ContentTypeHTML POSTContentType = iota // text/html ContentTypeJSON // application/json )
func POSTContentTypeString ¶ added in v0.1.0
func POSTContentTypeString(s string) (POSTContentType, error)
POSTContentTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func POSTContentTypeValues ¶ added in v0.1.0
func POSTContentTypeValues() []POSTContentType
POSTContentTypeValues returns all values of the enum
func (POSTContentType) IsAPOSTContentType ¶ added in v0.1.0
func (i POSTContentType) IsAPOSTContentType() bool
IsAPOSTContentType returns "true" if the value is listed in the enum definition. "false" otherwise
func (POSTContentType) MarshalJSON ¶ added in v0.1.0
func (i POSTContentType) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface for POSTContentType
func (POSTContentType) MarshalText ¶ added in v0.1.0
func (i POSTContentType) MarshalText() ([]byte, error)
MarshalText implements the encoding.TextMarshaler interface for POSTContentType
func (POSTContentType) String ¶ added in v0.1.0
func (i POSTContentType) String() string
func (*POSTContentType) UnmarshalJSON ¶ added in v0.1.0
func (i *POSTContentType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface for POSTContentType
func (*POSTContentType) UnmarshalText ¶ added in v0.1.0
func (i *POSTContentType) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface for POSTContentType
type POSTType ¶ added in v0.1.0
type POSTType uint8
func POSTTypeString ¶ added in v0.1.0
POSTTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func POSTTypeValues ¶ added in v0.1.0
func POSTTypeValues() []POSTType
POSTTypeValues returns all values of the enum
func (POSTType) IsAPOSTType ¶ added in v0.1.0
IsAPOSTType returns "true" if the value is listed in the enum definition. "false" otherwise
func (POSTType) MarshalJSON ¶ added in v0.1.0
MarshalJSON implements the json.Marshaler interface for POSTType
func (POSTType) MarshalText ¶ added in v0.1.0
MarshalText implements the encoding.TextMarshaler interface for POSTType
func (*POSTType) UnmarshalJSON ¶ added in v0.1.0
UnmarshalJSON implements the json.Unmarshaler interface for POSTType
func (*POSTType) UnmarshalText ¶ added in v0.1.0
UnmarshalText implements the encoding.TextUnmarshaler interface for POSTType
type PortType ¶
type PortType uint8
func PortTypeString ¶
PortTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func PortTypeValues ¶
func PortTypeValues() []PortType
PortTypeValues returns all values of the enum
func (PortType) IsAPortType ¶
IsAPortType returns "true" if the value is listed in the enum definition. "false" otherwise
func (PortType) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for PortType
func (PortType) MarshalText ¶ added in v0.1.0
MarshalText implements the encoding.TextMarshaler interface for PortType
func (*PortType) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for PortType
func (*PortType) UnmarshalText ¶ added in v0.1.0
UnmarshalText implements the encoding.TextUnmarshaler interface for PortType