interceptors

package
v0.0.0-...-a9ce3c6 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUserAuthorOfMessage

func IsUserAuthorOfMessage(client *elastic.Client, chatroomID string, messageID string, userID string) error

IsUserAuthorOfMessage allows to check wether the given user is the author of the message. It requires an elastic client, the id of the chatroom, the concerned message, and the id of the user. Will return an error if the user is not authorized.

Types

This section is empty.

Jump to

Keyboard shortcuts

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