controller

package
v0.1.0-develop.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrStreamDone = errors.New("done")

Functions

func InternalError

func InternalError(ctx iris.Context, err error) bool

func PassThroughStream

func PassThroughStream(stream io.Reader, ctx iris.Context) error

func SendError

func SendError(ctx iris.Context, err error, irisError int) bool

func ValidateCid

func ValidateCid(cidString string, validateStatus bool, ctx iris.Context) (string, bool)

Types

type AccountController

type AccountController struct {
	Controller
}

func (*AccountController) PostRegister

func (a *AccountController) PostRegister()

type AuthController

type AuthController struct {
	Controller
}

func (*AuthController) GetStatus

func (a *AuthController) GetStatus()

func (*AuthController) PostLogin

func (a *AuthController) PostLogin()

PostLogin handles the POST /api/auth/login request to authenticate a user and return a JWT token.

func (*AuthController) PostLogout

func (a *AuthController) PostLogout()

PostLogout handles the POST /api/auth/logout request to invalidate a JWT token.

func (*AuthController) PostPubkeyChallenge

func (a *AuthController) PostPubkeyChallenge()

PostChallenge handles the POST /api/auth/pubkey/challenge request to generate a challenge for a user's public key.

func (*AuthController) PostPubkeyLogin

func (a *AuthController) PostPubkeyLogin()

PostKeyLogin handles the POST /api/auth/pubkey/login request to authenticate a user using a public key challenge and return a JWT token.

type Controller

type Controller struct {
	Ctx iris.Context
}

type FilesController

type FilesController struct {
	Controller
}

func (*FilesController) BeginRequest

func (f *FilesController) BeginRequest(ctx iris.Context)

func (*FilesController) EndRequest

func (f *FilesController) EndRequest(ctx iris.Context)

func (*FilesController) GetDownloadBy

func (f *FilesController) GetDownloadBy(cidString string)

func (*FilesController) GetProofBy

func (f *FilesController) GetProofBy(cidString string)

func (*FilesController) GetStatusBy

func (f *FilesController) GetStatusBy(cidString string)

func (*FilesController) GetUploadLimit

func (f *FilesController) GetUploadLimit()

func (*FilesController) PostPinBy

func (f *FilesController) PostPinBy(cidString string)

func (*FilesController) PostUpload

func (f *FilesController) PostUpload()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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