api

package
v0.0.0-...-b015d54 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTP_MaxFileHeaderSize = 8 << 20 // 8M

)

Variables

This section is empty.

Functions

func HandleUploadFile

func HandleUploadFile(ctx *gin.Context)

func Load

func Load(rg *gin.RouterGroup, handlers ...gin.HandlerFunc)

Types

type UsersData

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

func NewUsersData

func NewUsersData() UsersData

func (*UsersData) Exists

func (ud *UsersData) Exists(name string) (ok bool)

func (*UsersData) Register

func (ud *UsersData) Register(user, password string) *Error

func (UsersData) Unregister

func (ud UsersData) Unregister(name string)

Verify password before unregister

func (UsersData) Verify

func (ud UsersData) Verify(name, password string) *Error

Jump to

Keyboard shortcuts

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