# Functions
NOTE: Assumes that s is ASCII as per IsASCIIText(), otherwise panics.
No description provided by the author
No description provided by the author
No description provided by the author
Connect dials the given address and returns a net.Conn.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Fingerprint returns the first 6 bytes of a byte slice.
GoPath returns GOPATH env variable value.
No description provided by the author
IntInSlice returns true if a is found in the list.
Returns true if s is a non-empty printable non-tab ascii character.
No description provided by the author
Returns true if it has zero length.
Go lacks a simple and safe way to see if something is a typed nil.
Kill the running process by sending itself SIGTERM.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewBaseService creates a new BaseService.
NewBitArray returns a new bit array.
No description provided by the author
No description provided by the author
New Error with formatted message.
New Error with specified data.
No description provided by the author
Construct a TickerMaker that always uses `source`.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewRepeatTimer returns a RepeatTimer with a defaultTicker.
NewRepeatTimerWithTicker returns a RepeatTimer with the given ticker maker.
No description provided by the author
Indicates a failure of consensus.
A panic here means something has gone horribly wrong, in the form of data corruption or failure of the operating system.
For those times when we're not sure if we should panic XXX DEPRECATED.
A panic resulting from a sanity check means there is a programmer error and some guarantee is not satisfied.
Run tasks in parallel, with ability to abort early.
ParseDateRange parses a date range string of the format start:end where the start and end date are of the format YYYY-MM-DD.
No description provided by the author
ProtocolAndAddress splits an address into the protocol and address components.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SplitAndTrim slices s into all subslices separated by sep and returns a slice of the string s with all leading and trailing Unicode code points contained in cutset removed.
StringInSlice returns true if a is found the list.
StringSliceEqual checks if string slices a and b are equal.
TrapSignal catches the SIGTERM and executes cb function.
No description provided by the author
No description provided by the author
WriteFileAtomic creates a temporary file with data and provided perm and swaps it atomically with filename if successful.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ErrAlreadyStarted is returned when somebody tries to start an already running service.
ErrAlreadyStopped is returned when somebody tries to stop an already stopped service (without resetting it).
No description provided by the author
No description provided by the author
ErrNotStarted is returned when somebody tries to stop a not running service.
this represents YYYY-MM-DD.
# Structs
Classical-inheritance-style service declarations.
BitArray is a thread-safe implementation of a bit array.
NOTE: Not goroutine safe.
CMap is a goroutine-safe map.
FmtError is the data type for NewError() (e.g.
Example usage:
```
h := NewHeap()
h.Push("msg1", 1)
h.Push("msg3", 3)
h.Push("msg2", 2)
fmt.Println(h.Pop()) // msg1
fmt.Println(h.Pop()) // msg2
fmt.Println(h.Pop()) // msg3
```
*/.
Define these here for compatibility but use libs/common.KI64Pair.
Define these here for compatibility but use libs/common.KVPair.
No description provided by the author
Rand is a prng, that is seeded with OS randomness.
RepeatTimer repeatedly sends a struct{}{} to `.Chan()` after each `dur`
period.
No description provided by the author
No description provided by the author
ThrottleTimer fires an event at most "dur" after each .Set() call.
# Interfaces
No description provided by the author
Usage with arbitrary error data:
```go
// Error construction
type MyError struct{}
var err1 error = NewErrorWithData(MyError{}, "my message")
..
Service defines a service that can be started, stopped, and reset.
Ticker is a basic ticker interface.
# Type aliases
The main purpose of HexBytes is to enable HEX-encoding for json/encoding.
No description provided by the author
No description provided by the author
val: the value returned after task execution.
Used by RepeatTimer the first time, and every time it's Reset() after Stop().