avatar

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Overview

This plugin allows viewing and uploading user avatars. {GET, POST} /api/avatar/UID to {view, upload}

To enable WebP support, ensure cgo is enabled and add the build flag `-tags avatar_webp`

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvatarPlugin

type AvatarPlugin interface {
	hub.APIPlugin
	hub.DatabasePlugin

	XGetAvatar(ctx context.Context, id string) (image.Image, error)
	XGetAvatarURL(ctx context.Context, id string) (string, error)
}
var Plugin AvatarPlugin = new(avatarPlugin)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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