handlers

package
v0.0.0-...-23ae872 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	JwtSecret    string
	PostsLimit   int64
	WsUserString string
}

type Handlers

type Handlers struct {
	Logger      *logrus.Logger
	Storage     storage.UserService
	AuthService storage.UserService
	Config      Config
	Queue       *queue.Service
	ChatApi     chat_api.ChatServiceClient
}

func (*Handlers) AddFriend

func (h *Handlers) AddFriend(c *fiber.Ctx) error

func (*Handlers) ChatCreate

func (h *Handlers) ChatCreate(c *fiber.Ctx) error

func (*Handlers) ChatPostMessage

func (h *Handlers) ChatPostMessage(c *fiber.Ctx) error

func (*Handlers) DeleteFriend

func (h *Handlers) DeleteFriend(c *fiber.Ctx) error

func (*Handlers) GetChatMessages

func (h *Handlers) GetChatMessages(c *fiber.Ctx) error

func (*Handlers) GetFriends

func (h *Handlers) GetFriends(c *fiber.Ctx) error

func (*Handlers) GetPostById

func (h *Handlers) GetPostById(c *fiber.Ctx) error

GetPostById Получение поста по его Id

func (*Handlers) GetUserChats

func (h *Handlers) GetUserChats(c *fiber.Ctx) error

func (*Handlers) Login

func (h *Handlers) Login(c *fiber.Ctx) error

func (*Handlers) PersonalFeed

func (h *Handlers) PersonalFeed(c *fiber.Ctx) error

func (*Handlers) PublishPost

func (h *Handlers) PublishPost(c *fiber.Ctx) error

PublishPost Публикация новой записи

func (*Handlers) Register

func (h *Handlers) Register(c *fiber.Ctx) error

Register Регистрация пользователя

func (*Handlers) SearchProfile

func (h *Handlers) SearchProfile(c *fiber.Ctx) error

func (*Handlers) UpdateProfile

func (h *Handlers) UpdateProfile(c *fiber.Ctx) error

func (*Handlers) UserInfo

func (h *Handlers) UserInfo(c *fiber.Ctx) error

func (*Handlers) UsersGet

func (h *Handlers) UsersGet(c *fiber.Ctx) error

Jump to

Keyboard shortcuts

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