rest

package
v5.0.0-...-b98a0e9 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResetToken

type ResetToken struct {
	UserLogin  string `json:"user_login"`
	UserEmail  string `json:"user_email"`
	Expiration int32  `json:"expiration"`
}

type TokenHandler

type TokenHandler struct {
	RuntimeCtx context.Context
}

func (*TokenHandler) Filter

func (a *TokenHandler) Filter() func(string) string

Filter returns a function to filter the swagger path

func (*TokenHandler) GenerateAndWrite

func (a *TokenHandler) GenerateAndWrite(ctx context.Context, genReq *auth.PatGenerateRequest, req *restful.Request, resp *restful.Response) error

func (*TokenHandler) GenerateDocumentAccessToken

func (a *TokenHandler) GenerateDocumentAccessToken(req *restful.Request, resp *restful.Response) error

GenerateDocumentAccessToken generates a temporary access token for a specific document for the current user

func (*TokenHandler) ResetPassword

func (a *TokenHandler) ResetPassword(req *restful.Request, resp *restful.Response) error

func (*TokenHandler) ResetPasswordToken

func (a *TokenHandler) ResetPasswordToken(req *restful.Request, resp *restful.Response) error

func (*TokenHandler) Revoke

func (a *TokenHandler) Revoke(req *restful.Request, resp *restful.Response) error

func (*TokenHandler) SwaggerTags

func (a *TokenHandler) SwaggerTags() []string

SwaggerTags list the names of the service tags declared in the swagger json implemented by this service

Directories

Path Synopsis
Package service provides REST access to the TokenServiceApi
Package service provides REST access to the TokenServiceApi

Jump to

Keyboard shortcuts

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