Documentation
¶
Index ¶
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 PortTypeStrings ¶
func PortTypeStrings() []string
PortTypeStrings returns a slice of all String values of the enum
Types ¶
type HTTPMethod ¶
type HTTPMethod uint8
const ( HTTPHEAD HTTPMethod = iota + 1 HTTPGET HTTPPOST HTTPPUT HTTPPATCH HTTPDELETE HTTPOPTIONS )
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) String ¶
func (i HTTPMethod) String() string
func (*HTTPMethod) UnmarshalJSON ¶
func (i *HTTPMethod) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler 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) String ¶
func (i KeywordType) String() string
func (*KeywordType) UnmarshalJSON ¶
func (i *KeywordType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler 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) String ¶
func (i MonitorAuthType) String() string
func (*MonitorAuthType) UnmarshalJSON ¶
func (i *MonitorAuthType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler 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) String ¶
func (i MonitorType) String() string
func (*MonitorType) UnmarshalJSON ¶
func (i *MonitorType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface for MonitorType
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) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for PortType