Documentation ¶
Index ¶
- func ConcurrentAction(maxConcurrent uint, action func(interface{}) (interface{}, error)) (chan<- interface{}, <-chan ConcurentOutput)
- func GetID(r *http.Request) string
- func IncludesString(array []string, lookup string) bool
- func IsRoot(r *http.Request) bool
- func Sha1(o interface{}) string
- func ToCamel(s string) string
- type ConcurentOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConcurrentAction ¶
func ConcurrentAction(maxConcurrent uint, action func(interface{}) (interface{}, error)) (chan<- interface{}, <-chan ConcurentOutput)
ConcurrentAction create a pool of goroutines for executing action with concurrency limits (default to NumCPU)
func IncludesString ¶
IncludesString checks in an array includes given string
Types ¶
type ConcurentOutput ¶ added in v1.7.0
type ConcurentOutput struct { Input interface{} Output interface{} Err error }
ConcurentOutput contains input, output and error from action
Click to show internal directories.
Click to hide internal directories.