urtypes

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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
const (
	TypeKeyValue POSTType = iota + 1
	TypeRawData
)

func POSTTypeString added in v0.1.0

func POSTTypeString(s string) (POSTType, error)

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

func (i POSTType) IsAPOSTType() bool

IsAPOSTType returns "true" if the value is listed in the enum definition. "false" otherwise

func (POSTType) MarshalJSON added in v0.1.0

func (i POSTType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for POSTType

func (POSTType) MarshalText added in v0.1.0

func (i POSTType) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for POSTType

func (POSTType) String added in v0.1.0

func (i POSTType) String() string

func (*POSTType) UnmarshalJSON added in v0.1.0

func (i *POSTType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for POSTType

func (*POSTType) UnmarshalText added in v0.1.0

func (i *POSTType) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for POSTType

type PortType

type PortType uint8
const (
	PortHTTP PortType = iota + 1
	PortFTP
	PortSMTP
	PortPOP3
	PortIMAP
	PortCustom
)

func PortTypeString

func PortTypeString(s string) (PortType, error)

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

func (i PortType) IsAPortType() bool

IsAPortType returns "true" if the value is listed in the enum definition. "false" otherwise

func (PortType) MarshalJSON

func (i PortType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for PortType

func (PortType) MarshalText added in v0.1.0

func (i PortType) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for PortType

func (PortType) String

func (i PortType) String() string

func (*PortType) UnmarshalJSON

func (i *PortType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for PortType

func (*PortType) UnmarshalText added in v0.1.0

func (i *PortType) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for PortType

type Status

type Status string
const (
	StatusOK   Status = "ok"
	StatusFail Status = "fail"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL