Documentation ¶
Index ¶
- func CreateSourceFromEnvAndInstall(g *libkb.GlobalContext)
- func FetchAvatar(ctx context.Context, g *globals.Context, username string) (res io.ReadCloser, err error)
- func GetBorderedCircleAvatar(ctx context.Context, g *globals.Context, username string, ...) (res io.ReadCloser, length int64, err error)
- func UploadImage(mctx libkb.MetaContext, filename string, teamID *keybase1.TeamID, ...) (err error)
- type FullCachingSource
- func (c *FullCachingSource) ClearCacheForName(m libkb.MetaContext, name string, formats []keybase1.AvatarFormat) (err error)
- func (c *FullCachingSource) LoadTeams(m libkb.MetaContext, teams []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
- func (c *FullCachingSource) LoadUsers(m libkb.MetaContext, usernames []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
- func (c *FullCachingSource) OnDbNuke(m libkb.MetaContext) error
- func (c *FullCachingSource) StartBackgroundTasks(m libkb.MetaContext)
- func (c *FullCachingSource) StopBackgroundTasks(m libkb.MetaContext)
- type SimpleSource
- func (s *SimpleSource) ClearCacheForName(m libkb.MetaContext, name string, formats []keybase1.AvatarFormat) (err error)
- func (s *SimpleSource) LoadTeams(m libkb.MetaContext, teams []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
- func (s *SimpleSource) LoadUsers(m libkb.MetaContext, usernames []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
- func (s *SimpleSource) OnDbNuke(m libkb.MetaContext) error
- func (s *SimpleSource) StartBackgroundTasks(_ libkb.MetaContext)
- func (s *SimpleSource) StopBackgroundTasks(_ libkb.MetaContext)
- type Srv
- type URLCachingSource
- func (c *URLCachingSource) ClearCacheForName(m libkb.MetaContext, name string, formats []keybase1.AvatarFormat) (err error)
- func (c *URLCachingSource) LoadTeams(m libkb.MetaContext, teams []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
- func (c *URLCachingSource) LoadUsers(m libkb.MetaContext, usernames []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
- func (c *URLCachingSource) OnDbNuke(m libkb.MetaContext) error
- func (c *URLCachingSource) StartBackgroundTasks(m libkb.MetaContext)
- func (c *URLCachingSource) StopBackgroundTasks(m libkb.MetaContext)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSourceFromEnvAndInstall ¶
func CreateSourceFromEnvAndInstall(g *libkb.GlobalContext)
func FetchAvatar ¶
func GetBorderedCircleAvatar ¶
func UploadImage ¶
func UploadImage(mctx libkb.MetaContext, filename string, teamID *keybase1.TeamID, crop *keybase1.ImageCropRect) (err error)
Types ¶
type FullCachingSource ¶
type FullCachingSource struct {
// contains filtered or unexported fields
}
func NewFullCachingSource ¶
func NewFullCachingSource(staleThreshold time.Duration, size int) *FullCachingSource
func (*FullCachingSource) ClearCacheForName ¶
func (c *FullCachingSource) ClearCacheForName(m libkb.MetaContext, name string, formats []keybase1.AvatarFormat) (err error)
func (*FullCachingSource) LoadTeams ¶
func (c *FullCachingSource) LoadTeams(m libkb.MetaContext, teams []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
func (*FullCachingSource) LoadUsers ¶
func (c *FullCachingSource) LoadUsers(m libkb.MetaContext, usernames []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
func (*FullCachingSource) OnDbNuke ¶
func (c *FullCachingSource) OnDbNuke(m libkb.MetaContext) error
func (*FullCachingSource) StartBackgroundTasks ¶
func (c *FullCachingSource) StartBackgroundTasks(m libkb.MetaContext)
func (*FullCachingSource) StopBackgroundTasks ¶
func (c *FullCachingSource) StopBackgroundTasks(m libkb.MetaContext)
type SimpleSource ¶
type SimpleSource struct{}
func NewSimpleSource ¶
func NewSimpleSource() *SimpleSource
func (*SimpleSource) ClearCacheForName ¶
func (s *SimpleSource) ClearCacheForName(m libkb.MetaContext, name string, formats []keybase1.AvatarFormat) (err error)
func (*SimpleSource) LoadTeams ¶
func (s *SimpleSource) LoadTeams(m libkb.MetaContext, teams []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
func (*SimpleSource) LoadUsers ¶
func (s *SimpleSource) LoadUsers(m libkb.MetaContext, usernames []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
func (*SimpleSource) OnDbNuke ¶
func (s *SimpleSource) OnDbNuke(m libkb.MetaContext) error
func (*SimpleSource) StartBackgroundTasks ¶
func (s *SimpleSource) StartBackgroundTasks(_ libkb.MetaContext)
func (*SimpleSource) StopBackgroundTasks ¶
func (s *SimpleSource) StopBackgroundTasks(_ libkb.MetaContext)
type Srv ¶
type Srv struct { libkb.Contextified // contains filtered or unexported fields }
func NewSrv ¶
func NewSrv(g *libkb.GlobalContext, httpSrv *manager.Srv, source libkb.AvatarLoaderSource) *Srv
func ServiceInit ¶
func ServiceInit(g *libkb.GlobalContext, httpSrv *manager.Srv, source libkb.AvatarLoaderSource) *Srv
type URLCachingSource ¶
type URLCachingSource struct {
// contains filtered or unexported fields
}
func NewURLCachingSource ¶
func NewURLCachingSource(staleThreshold time.Duration, size int) *URLCachingSource
func (*URLCachingSource) ClearCacheForName ¶
func (c *URLCachingSource) ClearCacheForName(m libkb.MetaContext, name string, formats []keybase1.AvatarFormat) (err error)
func (*URLCachingSource) LoadTeams ¶
func (c *URLCachingSource) LoadTeams(m libkb.MetaContext, teams []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
func (*URLCachingSource) LoadUsers ¶
func (c *URLCachingSource) LoadUsers(m libkb.MetaContext, usernames []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
func (*URLCachingSource) OnDbNuke ¶
func (c *URLCachingSource) OnDbNuke(m libkb.MetaContext) error
func (*URLCachingSource) StartBackgroundTasks ¶
func (c *URLCachingSource) StartBackgroundTasks(m libkb.MetaContext)
func (*URLCachingSource) StopBackgroundTasks ¶
func (c *URLCachingSource) StopBackgroundTasks(m libkb.MetaContext)
Click to show internal directories.
Click to hide internal directories.