avatar

package
v0.0.0-testrgm3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2023 License: AGPL-3.0 Imports: 17 Imported by: 153

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Avatar

type Avatar struct {
	// contains filtered or unexported fields
}

Avatar represents the avatar object.

func New

func New(hash string) *Avatar

func (*Avatar) Encode

func (a *Avatar) Encode(wr io.Writer) error

func (*Avatar) Expired

func (a *Avatar) Expired() bool

func (*Avatar) GetIsCustom

func (a *Avatar) GetIsCustom() bool

type AvatarCacheServer

type AvatarCacheServer struct {
	// contains filtered or unexported fields
}

func ProvideAvatarCacheServer

func ProvideAvatarCacheServer(cfg *setting.Cfg) *AvatarCacheServer

Access cache server singleton instance

func (*AvatarCacheServer) GetAvatarForHash

func (a *AvatarCacheServer) GetAvatarForHash(hash string) *Avatar

func (*AvatarCacheServer) Handler

func (a *AvatarCacheServer) Handler(ctx *contextmodel.ReqContext)

type ResponseHandler

type ResponseHandler func(av *Avatar, resp *http.Response) error

type Thunder

type Thunder struct {
	QueueSize int // download queue size
	// contains filtered or unexported fields
}

func (*Thunder) Fetch

func (t *Thunder) Fetch(baseUrl string, avatar *Avatar) error

func (*Thunder) GoFetch

func (t *Thunder) GoFetch(baseUrl string, avatar *Avatar) chan error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL