api

package
v0.0.0-...-632786d Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLogin

func CheckLogin(ginContext *gin.Context)

CheckLogin - check login

func DropSession

func DropSession(ginContext *gin.Context)

DropSession - drop session

func GenerateErrorResponse

func GenerateErrorResponse(textErr, codeErr string, errStatusCode int, ginContext *gin.Context)

GenerateErrorResponse - error response generation procedure

func GetSession

func GetSession(ginContext *gin.Context)

GetSession - get session

func LogOut

func LogOut(ginContext *gin.Context)

LogOut - close session

func Login

func Login(ginContext *gin.Context)

Login - method login

func MetodOrPatchNotFound

func MetodOrPatchNotFound(ginContext *gin.Context)

MetodOrPatchNotFound - stub for methods not described

func NewRequest

func NewRequest(SessionInfo *config.SessionInfo, body io.Reader, ginContext *gin.Context) (request1C *http.Request, err error)

NewRequest - create new request

func OtherMetods

func OtherMetods(ginContext *gin.Context)

OtherMetods - execution of the rest of any methods

func SendRequest

func SendRequest(SessionInfo *config.SessionInfo, ginContext *gin.Context) (*http.Response, string, error)

SendRequest - send request

func UUIDIsValid

func UUIDIsValid(text string) bool

UUIDIsValid - check uuid for correctness

Types

This section is empty.

Jump to

Keyboard shortcuts

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