Versions in this module Expand all Collapse all v1 v1.0.18 Oct 26, 2016 Changes in this version + const PublicUIDName + const ReaderSep + const TlfHandleExtensionSep + func AggRateLimits(rlimits []chat1.RateLimit) (res []chat1.RateLimit) + func AggRateLimitsP(rlimits []*chat1.RateLimit) (res []chat1.RateLimit) + func Collar(lower int, ideal int, upper int) int + func FilterByType(msgs []chat1.MessageUnboxed, query *chat1.GetThreadQuery) (res []chat1.MessageUnboxed) + func ParseDurationExtended(s string) (d time.Duration, err error) + func ParseTimeFromRFC3339OrDurationFromPast(kbCtx KeybaseContext, s string) (t time.Time, err error) + func ReorderParticipants(udc *UserDeviceCache, uimap *UserInfoMapper, tlfname string, ...) (writerNames []string, readerNames []string, err error) + type BadTLFNameError struct + Name string + func (e BadTLFNameError) Error() string + type KeybaseContext interface + Clock func() clockwork.Clock + GetLog func() logger.Logger + LoadUserByUID func(uid keybase1.UID) (*libkb.User, error) + type NoSuchNameError struct + Name string + func (e NoSuchNameError) Error() string + type NoSuchUserError struct + Input string + func (e NoSuchUserError) Error() string + func (e NoSuchUserError) ToStatus() keybase1.Status + type TlfNameNotCanonical struct + Name string + NameToTry string + func (e TlfNameNotCanonical) Error() string + type UserDeviceCache struct + func NewUserDeviceCache(kbCtx KeybaseContext) *UserDeviceCache + func (c *UserDeviceCache) LookupUsername(uimap *UserInfoMapper, uid keybase1.UID) (username string, err error) + func (c *UserDeviceCache) LookupUsernameAndDeviceName(uimap *UserInfoMapper, uid keybase1.UID, deviceID keybase1.DeviceID) (username string, devicename string, err error) + type UserInfoMapper struct + func GetUserInfoMapper(ctx context.Context, kbCtx KeybaseContext) (context.Context, *UserInfoMapper) + func (u *UserInfoMapper) Lookup(uid keybase1.UID, deviceID keybase1.DeviceID) (username, deviceName string, err error) + func (u *UserInfoMapper) User(uid keybase1.UID) (*libkb.User, error)