Documentation ¶
Overview ¶
Package util contains optional utility functions for Rumble.
Package util contains optional utility functions for Rumble.
Package util contains optional utility functions for Rumble.
Package util contains optional utility functions for Rumble.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConcatFunc ¶
type ConcatFunc struct { }
ConcatFunc concatenates two or more strings.
func (*ConcatFunc) Execute ¶
func (f *ConcatFunc) Execute(argsVal []interface{}, vars rumble.Variables, rt rumble.Runtime) (interface{}, rumble.RuntimeError)
Execute executes the rumble function.
func (*ConcatFunc) Validate ¶
func (f *ConcatFunc) Validate(argsNum int, rt rumble.Runtime) rumble.RuntimeError
Validate is called for parameter validation and to reset the function state.
type DispStringFunc ¶
type DispStringFunc struct { }
DispStringFunc creates a display string from a given string.
func (*DispStringFunc) Execute ¶
func (f *DispStringFunc) Execute(argsVal []interface{}, vars rumble.Variables, rt rumble.Runtime) (interface{}, rumble.RuntimeError)
Execute executes the rumble function.
func (*DispStringFunc) Name ¶
func (f *DispStringFunc) Name() string
Name returns the name of the function.
func (*DispStringFunc) Validate ¶
func (f *DispStringFunc) Validate(argsNum int, rt rumble.Runtime) rumble.RuntimeError
Validate is called for parameter validation and to reset the function state.
type FileSplitFunc ¶
type FileSplitFunc struct { }
FileSplitFunc splits a given file name into name and extension.
func (*FileSplitFunc) Execute ¶
func (f *FileSplitFunc) Execute(argsVal []interface{}, vars rumble.Variables, rt rumble.Runtime) (interface{}, rumble.RuntimeError)
Execute executes the rumble function.
func (*FileSplitFunc) Name ¶
func (f *FileSplitFunc) Name() string
Name returns the name of the function.
func (*FileSplitFunc) Validate ¶
func (f *FileSplitFunc) Validate(argsNum int, rt rumble.Runtime) rumble.RuntimeError
Validate is called for parameter validation and to reset the function state.
type HashFunc ¶
type HashFunc struct { }
HashFunc hashes a given string.
type PathConcatFunc ¶
type PathConcatFunc struct { }
PathConcatFunc concatenates two or more path elements.
func (*PathConcatFunc) Execute ¶
func (f *PathConcatFunc) Execute(argsVal []interface{}, vars rumble.Variables, rt rumble.Runtime) (interface{}, rumble.RuntimeError)
Execute executes the rumble function.
func (*PathConcatFunc) Name ¶
func (f *PathConcatFunc) Name() string
Name returns the name of the function.
func (*PathConcatFunc) Validate ¶
func (f *PathConcatFunc) Validate(argsNum int, rt rumble.Runtime) rumble.RuntimeError
Validate is called for parameter validation and to reset the function state.
type SplitFunc ¶
type SplitFunc struct { }
SplitFunc splits a given string according to a given delimiter.
type TimeCompareFunc ¶
type TimeCompareFunc struct { }
TimeCompareFunc compares two timestamps. Returns 0 if they are equal, 1 if the frist is older and -1 if the second is older.
func (*TimeCompareFunc) Execute ¶
func (f *TimeCompareFunc) Execute(argsVal []interface{}, vars rumble.Variables, rt rumble.Runtime) (interface{}, rumble.RuntimeError)
Execute executes the rumble function.
func (*TimeCompareFunc) Name ¶
func (f *TimeCompareFunc) Name() string
Name returns the name of the function.
func (*TimeCompareFunc) Validate ¶
func (f *TimeCompareFunc) Validate(argsNum int, rt rumble.Runtime) rumble.RuntimeError
Validate is called for parameter validation and to reset the function state.
type TimeStampFunc ¶
type TimeStampFunc struct { }
TimeStampFunc creates a timestamp string based on the systems epoch (January 1, 1970 UTC)
func (*TimeStampFunc) Execute ¶
func (f *TimeStampFunc) Execute(argsVal []interface{}, vars rumble.Variables, rt rumble.Runtime) (interface{}, rumble.RuntimeError)
Execute executes the rumble function.
func (*TimeStampFunc) Name ¶
func (f *TimeStampFunc) Name() string
Name returns the name of the function.
func (*TimeStampFunc) Validate ¶
func (f *TimeStampFunc) Validate(argsNum int, rt rumble.Runtime) rumble.RuntimeError
Validate is called for parameter validation and to reset the function state.
type TimeStringFunc ¶
type TimeStringFunc struct { }
TimeStringFunc converts a given timestamp into a human-readable string.
func (*TimeStringFunc) Execute ¶
func (f *TimeStringFunc) Execute(argsVal []interface{}, vars rumble.Variables, rt rumble.Runtime) (interface{}, rumble.RuntimeError)
Execute executes the rumble function.
func (*TimeStringFunc) Name ¶
func (f *TimeStringFunc) Name() string
Name returns the name of the function.
func (*TimeStringFunc) Validate ¶
func (f *TimeStringFunc) Validate(argsNum int, rt rumble.Runtime) rumble.RuntimeError
Validate is called for parameter validation and to reset the function state.