utils

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNodeID added in v0.1.7

func CreateNodeID(filePath string) (string, error)

func FillStruct added in v0.1.9

func FillStruct(s interface{}, m map[string]interface{}) error

func LoadNodeID added in v0.1.7

func LoadNodeID(filePath string) (string, error)

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 SetField added in v0.1.9

func SetField(obj interface{}, name string, value interface{}) error

func SliceContains

func SliceContains(slice []string, value string) bool

func SliceUnique

func SliceUnique(slice []string) bool

Types

type SwanError added in v0.1.7

type SwanError struct {
	Severity SwanErrorSeverity `json:"Severity"`
	Err      error             `json:"Err"`
}

func (*SwanError) Error added in v0.1.7

func (e *SwanError) Error() string

type SwanErrorSeverity added in v0.1.7

type SwanErrorSeverity int
const (
	SeverityLow SwanErrorSeverity = iota
	SeverityMiddle
	SeverityHigh
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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