Documentation ¶
Index ¶
- func CreateNodeID(filePath string) (string, error)
- func FillStruct(s interface{}, m map[string]interface{}) error
- func LoadNodeID(filePath string) (string, error)
- func NewError(severity SwanErrorSeverity, err error) error
- func NewErrorFromString(severity SwanErrorSeverity, message string) error
- func SetField(obj interface{}, name string, value interface{}) error
- func SliceContains(slice []string, value string) bool
- func SliceUnique(slice []string) bool
- type SwanError
- type SwanErrorSeverity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNodeID ¶ added in v0.1.7
func FillStruct ¶ added in v0.1.9
func LoadNodeID ¶ added in v0.1.7
func NewError ¶ added in v0.1.7
func NewError(severity SwanErrorSeverity, err error) error
func NewErrorFromString ¶ added in v0.1.7
func NewErrorFromString(severity SwanErrorSeverity, message string) error
func SliceContains ¶
func SliceUnique ¶
Types ¶
type SwanError ¶ added in v0.1.7
type SwanError struct { Severity SwanErrorSeverity `json:"Severity"` Err error `json:"Err"` }
type SwanErrorSeverity ¶ added in v0.1.7
type SwanErrorSeverity int
const ( SeverityLow SwanErrorSeverity = iota SeverityMiddle SeverityHigh )
Click to show internal directories.
Click to hide internal directories.