Documentation ¶
Index ¶
- func AddSlashIfNeeded(url string) string
- func Bytestouint32(b []byte) uint32
- func CheckMapHasKey(inputMap map[string]interface{}, key string) string
- func DecodeBytesToInt(b []byte) int
- func DecodeBytesToInterface(b []byte, dest interface{}) error
- func EncodeIntToBytes(v int) []byte
- func EncodeInterfaceToBytes(v interface{}) ([]byte, error)
- func EnsureDir(path string)
- func FileExistsFn(basepath, filename string) bool
- func GetLastSplit(s string) string
- func GetSecondLastSplit(s string) string
- func MarshalValue(value interface{}) ([]byte, error)
- func NewThrottler(allowed int) chan struct{}
- func Uin32tobytes(num uint32) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSlashIfNeeded ¶
func Bytestouint32 ¶
func CheckMapHasKey ¶
func DecodeBytesToInt ¶
func DecodeBytesToInterface ¶
func EncodeIntToBytes ¶
func EncodeInterfaceToBytes ¶
func FileExistsFn ¶
func GetLastSplit ¶
URLS ARE AN ENTIRELY REASONABLE WAY TO SEND IDS
func GetSecondLastSplit ¶
func MarshalValue ¶
func NewThrottler ¶
func NewThrottler(allowed int) chan struct{}
newThrottler creates throttler that gives out resources up to allowed. Resources must be returned by re-sending on the channel.
func Uin32tobytes ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.