v1

package
v1.0.0-rc.2.0...-638eaff Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmojiCache

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

func NewEmojiCache

func NewEmojiCache(repo repository.Repository) *EmojiCache

func (*EmojiCache) Purge

func (c *EmojiCache) Purge()

Purge purges cache content.

type Handlers

type Handlers struct {
	RBAC           rbac.RBAC
	Repo           repository.Repository
	Hub            *hub.Hub
	Logger         *zap.Logger
	SessStore      session.Store
	ChannelManager channel.Manager
	MessageManager message.Manager
	FileManager    file.Manager
	Replacer       *mutil.Replacer
	EmojiCache     *EmojiCache
}

Handlers ハンドラ

func (*Handlers) GetFileByID

func (h *Handlers) GetFileByID(c echo.Context) error

GetFileByID GET /files/:fileID

func (*Handlers) GetMetaDataByFileID

func (h *Handlers) GetMetaDataByFileID(c echo.Context) error

GetMetaDataByFileID GET /files/:fileID/meta

func (*Handlers) GetPublicEmojiCSS

func (h *Handlers) GetPublicEmojiCSS(c echo.Context) error

GetPublicEmojiCSS GET /public/emoji.css

func (*Handlers) GetPublicEmojiImage

func (h *Handlers) GetPublicEmojiImage(c echo.Context) error

GetPublicEmojiImage GET /public/emoji/{stampID}

func (*Handlers) GetPublicEmojiJSON

func (h *Handlers) GetPublicEmojiJSON(c echo.Context) error

GetPublicEmojiJSON GET /public/emoji.json

func (*Handlers) GetPublicUserIcon

func (h *Handlers) GetPublicUserIcon(c echo.Context) error

GetPublicUserIcon GET /public/icon/{username}

func (*Handlers) GetThumbnailByID

func (h *Handlers) GetThumbnailByID(c echo.Context) error

GetThumbnailByID GET /files/:fileID/thumbnail

func (*Handlers) L

func (h *Handlers) L(c echo.Context) *zap.Logger

L ロガーを返します

func (*Handlers) Setup

func (h *Handlers) Setup(e *echo.Group)

Setup APIルーティングを行います

Jump to

Keyboard shortcuts

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