admin

package
v0.0.0-...-e5543ad Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: ISC Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(options api.Options, c *echo.Group)

NewRouter : create new router for admin endpoint

Types

type Credentials

type Credentials struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Credentials : user credentials for sign in

type File

type File struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

File : file data for listing

type Filelist

type Filelist struct {
	Files []string `json:"files"`
}

Filelist : list of files

type Route

type Route api.Options

Route : route object

func (Route) DeleteFile

func (i Route) DeleteFile(c echo.Context) error

DeleteFile : delete a file from the API

func (Route) ListFile

func (i Route) ListFile(c echo.Context) error

ListFile : listing files

func (Route) Login

func (i Route) Login(c echo.Context) error

Login : log in to the API

func (Route) VerifyFile

func (i Route) VerifyFile(c echo.Context) error

VerifyFile : Verifying user uploads

type Search struct {
	Endpoint string `json:"endpoint"`
	Query    string `json:"query"`
	Verified bool   `json:"verified"`
	Nsfw     bool   `json:"nsfw"`
}

Search : admin search images

Jump to

Keyboard shortcuts

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