Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + var B58KeyConverter = b58KeyConverter + var Debug bool + var ErrNoSuchLogger = errors.New("Error: No such logger") + var ErrNotFound = ds.ErrNotFound + var ErrNotImplemented = errors.New("Error: not implemented yet.") + var ErrSearchIncomplete = errors.New("Error: Search Incomplete.") + var ErrTimeout = errors.New("Error: Call timed out.") + var LogFormats = map[string]string + var TimeFormatIpfs = time.RFC3339Nano + func B58KeyEncode(k Key) string + func ContextDo(ctx context.Context, f func() error) error + func ContextWithErrorLog(parent context.Context) (context.Context, <-chan error) + func ErrCast() error + func ExpandPathnames(paths []string) ([]string, error) + func FileExists(filename string) bool + func FormatRFC3339(t time.Time) string + func GetenvBool(name string) bool + func Hash(data []byte) mh.Multihash + func IsValidHash(s string) bool + func LogError(ctx context.Context, err error) + func Logger(name string) *logging.Logger + func NewByteChanReader(in chan []byte) io.Reader + func NewSeededRand(seed int64) io.Reader + func NewTimeSeededRand() io.Reader + func POut(format string, a ...interface{}) + func ParseRFC3339(s string) (time.Time, error) + func Partition(subject string, sep string) (string, string, string) + func RPartition(subject string, sep string) (string, string, string) + func SetAllLoggers(lvl logging.Level) + func SetDebugLogging() + func SetLogLevel(name, level string) error + func SetupLogging() + func TildeExpansion(filename string) (string, error) + func XOR(a, b []byte) []byte + type Key string + func B58KeyDecode(s string) Key + func KeyFromDsKey(dsk ds.Key) Key + func (k *Key) Loggable() map[string]interface{} + func (k *Key) MarshalJSON() ([]byte, error) + func (k *Key) UnmarshalJSON(mk []byte) error + func (k Key) B58String() string + func (k Key) DsKey() ds.Key + func (k Key) Pretty() string + func (k Key) String() string + func (k Key) ToMultihash() mh.Multihash + type KeySet interface + Add func(Key) + Keys func() []Key + Remove func(Key) + func NewKeySet() KeySet + type KeySlice []Key + func (es KeySlice) Len() int + func (es KeySlice) Less(i, j int) bool + func (es KeySlice) Swap(i, j int) + type MultiErr []error + func (m MultiErr) Error() string