Documentation ¶
Index ¶
- Constants
- func Debug(format string, args ...interface{})
- func ErrHttpEmptyResponse() error
- func ErrMissingFlowAttrs() error
- func ErrNullModelRepo() error
- func ErrNullOutput() error
- func ErrNullRepo() error
- func Error(format string, args ...interface{})
- func ErrorToHTTPStatus(err error) (int, string)
- func Errorf(format string, args ...interface{})
- func FixedRandomString(n int) string
- func GetEnv(name string) string
- func GetEnvVar(name string) string
- func HomeDir() (string, error)
- func Info(format string, args ...interface{})
- func IsErrFileNotFound(e error) bool
- func IsErrHttpEmptyResponse(err error) bool
- func IsErrMissingFlowAttrs(err error) bool
- func IsErrNullModelRepo(err error) bool
- func IsErrNullOutput(err error) bool
- func IsErrNullRepo(err error) bool
- func JustHomeDir() string
- func Log(format string, args ...interface{})
- func Out(format string, args ...interface{})
- func Println(format string, args ...interface{})
- func SetEnvVar(name, value string) error
- func Warn(format string, args ...interface{})
- type ErrFileNotFound
- type HTTPError
- type IntMax
- type IntMeanVar
Constants ¶
const ( // HttpEmptyRespError : Error message for empty response HttpEmptyRespError = "Empty Response from Server" // NullRepo : Error message for empty repo NullRepo = "Repo Not found" // MissingFlowAttrs : Error message for missing flow attrs MissingFlowAttrs = "Missing Flow attributes" // NullModelRepo : Error message for NUll Model Repo NullModelRepo = "Flow has no model repo" // NullOutput : Error message when flow has no output NullOutput = "Flow has no output" )
Variables ¶
This section is empty.
Functions ¶
func ErrHttpEmptyResponse ¶
func ErrHttpEmptyResponse() error
ErrHttpEmptyResponse : Raises Empty response
func ErrMissingFlowAttrs ¶
func ErrMissingFlowAttrs() error
ErrMissingFlowAttrs : Raise Missing Flow Attrs Error
func ErrNullModelRepo ¶
func ErrNullModelRepo() error
ErrNullModelRepo : Return error struct for Empty Model Repo
func ErrNullOutput ¶
func ErrNullOutput() error
ErrNullOutput : returns error struct for empty output
func FixedRandomString ¶
FixedRandomString : Random fixed size char string
func IsErrFileNotFound ¶
IsErrFileNotFound : Identifies file not found error
func IsErrHttpEmptyResponse ¶
IsErrHttpEmptyResponse : Returns True if err is empty response
func IsErrMissingFlowAttrs ¶
IsErrMissingFlowAttrs : Returns true when error is missing flow attrs
func IsErrNullModelRepo ¶
IsErrNullModelRepo : Return true for Empty Model Repo
func IsErrNullOutput ¶
IsErrNullOutput : returns true for empty output
func IsErrNullRepo ¶
IsErrNullRepo : Returns true for Null Repo Error
func JustHomeDir ¶
func JustHomeDir() string
JustHomeDir : Returns user home directory. Works better on Linux
Types ¶
type ErrFileNotFound ¶
ErrFileNotFound : Custom error when file is not found
func (ErrFileNotFound) Error ¶
func (e ErrFileNotFound) Error() string
type HTTPError ¶
HTTPError : HTTP Error struct returned by handler methods
func HTTPErrorf ¶
HTTPErrorf :
type IntMax ¶
type IntMax struct {
// contains filtered or unexported fields
}
IntMax : Used Locking and tracking waiters
type IntMeanVar ¶
type IntMeanVar struct {
// contains filtered or unexported fields
}
IntMeanVar :
func (*IntMeanVar) AddValue ¶
func (v *IntMeanVar) AddValue(value int64)
AddValue : Calculates new mean as iterative mean (avoids int overflow)
func (*IntMeanVar) String ¶
func (v *IntMeanVar) String() string