Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStatusNotFound = errors.New("Not Found")
Functions ¶
func ChunkSlice ¶
func ChunkSlice(s interface{}, chunkSize int) interface{}
func HTTPGetJSON ¶
func IsStringInSlice ¶
Types ¶
type BytesBuffer ¶
type BytesBuffer struct {
// contains filtered or unexported fields
}
BytesBuffer represent bytes buffer as ReadCloser
func NewBytesBuffer ¶
func NewBytesBuffer(p []byte) *BytesBuffer
NewBytesBuffer create a bytes buffer
type HTTPClient ¶
HTTPClient is an http client perofrming caching
type RecurrentTask ¶
type RecurrentTask struct { RunAtStartup bool // contains filtered or unexported fields }
RecurrentTask represent a recurrent task
func NewRecurrentTask ¶
func NewRecurrentTask(interval time.Duration, callback func()) RecurrentTask
NewRecurrentTask create a recurrent task
type SynchronizedMap ¶
type SynchronizedMap struct {
// contains filtered or unexported fields
}
func NewSynchronizedMap ¶
func NewSynchronizedMap() *SynchronizedMap
func (*SynchronizedMap) Get ¶
func (sm *SynchronizedMap) Get(key string) (interface{}, bool)
func (*SynchronizedMap) Set ¶
func (sm *SynchronizedMap) Set(key string, value interface{})
Click to show internal directories.
Click to hide internal directories.