api

package
v0.0.0-...-6641a51 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAuth

func HandleAuth(w http.ResponseWriter, r *http.Request)

HandleAuth godoc @Summary Авторизация @Description Обработка попытки авторизации @Tags auth @Accept json @Produce json @Param data body AuthRequest true "Auth data" @Success 200 {object} map[string]bool @Failure 400 {string} string "Invalid request" @Router /auth [post]

func HandleCheckList

func HandleCheckList(w http.ResponseWriter, r *http.Request)

func HandleManageList

func HandleManageList(w http.ResponseWriter, r *http.Request)

func InitLogger

func InitLogger(log *logger.Logger)

func NewServer

func NewServer(log *logger.Logger) *server

func RunGRPCServer

func RunGRPCServer(log *logger.Logger)

Types

type AuthRequest

type AuthRequest struct {
	Login    string `json:"login"`
	Password string `json:"password"`
	IP       string `json:"ip"`
}

AuthRequest структура запроса авторизации

Directories

Path Synopsis
proto
pb

Jump to

Keyboard shortcuts

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