Documentation
¶
Index ¶
- Variables
- func InternalError(ctx iris.Context, err error) bool
- func PassThroughStream(stream io.Reader, ctx iris.Context) error
- func SendError(ctx iris.Context, err error, irisError int) bool
- func ValidateCid(cidString string, validateStatus bool, ctx iris.Context) (string, bool)
- type AccountController
- type AuthController
- type Controller
- type FilesController
- func (f *FilesController) BeginRequest(ctx iris.Context)
- func (f *FilesController) EndRequest(ctx iris.Context)
- func (f *FilesController) GetDownloadBy(cidString string)
- func (f *FilesController) GetProofBy(cidString string)
- func (f *FilesController) GetStatusBy(cidString string)
- func (f *FilesController) GetUploadLimit()
- func (f *FilesController) PostPinBy(cidString string)
- func (f *FilesController) PostUpload()
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStreamDone = errors.New("done")
Functions ¶
func InternalError ¶
func PassThroughStream ¶
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()
Click to show internal directories.
Click to hide internal directories.