Documentation
¶
Index ¶
- func CheckSource(s interface{}, targets ...Source) (_ bool, err error)
- func CheckStatus(s interface{}, targets ...Status) (_ bool, err error)
- func ValidProtocol(s interface{}) bool
- func ValidSource(s interface{}) bool
- func ValidStatus(s interface{}) bool
- type Direction
- type Protocol
- type Source
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSource ¶
func CheckStatus ¶
func ValidProtocol ¶
func ValidProtocol(s interface{}) bool
func ValidSource ¶
func ValidSource(s interface{}) bool
func ValidStatus ¶
func ValidStatus(s interface{}) bool
Types ¶
type Direction ¶
type Direction uint8
func ParseDirection ¶
func (Direction) MarshalJSON ¶
func (*Direction) UnmarshalJSON ¶
type Protocol ¶
type Protocol uint8
func ParseProtocol ¶
func (Protocol) MarshalJSON ¶
func (*Protocol) UnmarshalJSON ¶
type Source ¶
type Source uint8
func ParseSource ¶
func (Source) MarshalJSON ¶
func (*Source) UnmarshalJSON ¶
type Status ¶
type Status uint8
func ParseStatus ¶
func (Status) MarshalJSON ¶
func (*Status) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.