emoji

package
v0.0.0-...-871226d Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmojiListResponse

func NewEmojiListResponse(emojis []*database.Resp) []render.Renderer

Types

type EmojiResource

type EmojiResource struct {
	Store EmojiStore
}

UserResource implements user management handler.

func NewEmojiResource

func NewEmojiResource(store EmojiStore) *EmojiResource

NewUserResource creates and returns a profile resource.

func (*EmojiResource) Router

func (rs *EmojiResource) Router() *chi.Mux

type EmojiStore

type EmojiStore interface {
	Get(id int64) (*models.Emoji, error)
	GetTop(id int64, days int) ([]*models.Emoji, error)
	GetAll(animated bool, days int) ([]*database.Resp, error)
}

UserStore defines database operations for a profile.

Jump to

Keyboard shortcuts

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