Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrorTimeout = "Execute: Timeout running command" ErrorTimeoutKill = "Execute: Could not kill process after timeout" )
View Source
const ( DATE = "auth[date]=" SIG = "&auth[signature]=" FORMAT = "Mon, _2 Jan 2006 15:04:05 GMT" )
Variables ¶
View Source
var ErrorRequestBody = errors.New("{\"error\":\"Could not read request body\"}")
View Source
var ErrorRequestJsonUnmarshal = errors.New("{\"error\":\"Could not generate struct vom json\"}")
View Source
var ErrorRestFunc = errors.New("{\"error\":\"Rest function must be func(struct, web.C) (struct, error)\"}")
Functions ¶
func GojiRestJsonWrapper ¶
func WriterError ¶
func WriterError(w http.ResponseWriter, e error)
Types ¶
type ConcurrencyLimit ¶
type ConcurrencyLimit struct {
// contains filtered or unexported fields
}
func NewConcurrencyLimit ¶
func NewConcurrencyLimit(limit int) ConcurrencyLimit
func NewConcurrencyLimitCPU ¶
func NewConcurrencyLimitCPU() ConcurrencyLimit
func NewConcurrencyLimitCPUFactore ¶
func NewConcurrencyLimitCPUFactore(f float64) ConcurrencyLimit
func NewConcurrencyLimitOne ¶
func NewConcurrencyLimitOne() ConcurrencyLimit
func (*ConcurrencyLimit) Free ¶
func (l *ConcurrencyLimit) Free()
func (*ConcurrencyLimit) Len ¶
func (l *ConcurrencyLimit) Len() int
func (*ConcurrencyLimit) Limit ¶
func (l *ConcurrencyLimit) Limit() func()
usage: defer x.Limit()()
^ ^ double ()
func (*ConcurrencyLimit) Size ¶
func (l *ConcurrencyLimit) Size() int
func (*ConcurrencyLimit) Use ¶
func (l *ConcurrencyLimit) Use()
type Processes ¶
type Processes struct { }
var Process Processes
func (*Processes) AppendProcTitle ¶
func (*Processes) SetProcTitle ¶
type Synchronized ¶
type Synchronized struct {
// contains filtered or unexported fields
}
var Sync Synchronized
func (*Synchronized) Call ¶
func (s *Synchronized) Call(lock interface{}, call func())
func (*Synchronized) Lock ¶
func (s *Synchronized) Lock(key interface{})
func (*Synchronized) Unlock ¶
func (s *Synchronized) Unlock(key interface{})
Source Files
¶
Click to show internal directories.
Click to hide internal directories.