Beep backend handling user permissions
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Daniel Lim 236ed765e2 Main logic 3 years ago
.env Main logic 3 years ago
.gitignore Initial commit 3 years ago
Dockerfile Main logic 3 years ago Main logic 3 years ago
go.mod Main logic 3 years ago
go.sum Main logic 3 years ago
main.go Main logic 3 years ago


Beep backend handling user permissions. Currently, permissions are defined as user-scope (i.e. userid in conversationid). If no such pairing exists, permission is denied. Might consider moving to searchms style user-scope-action system later.

Relations are cached in redis to avoid excessive querying time. A listener updates the cache on database changes.

Environment variables

Supply environment variables by either exporting them or editing .env.

ENV Description Default
LISTEN Host and port for service to listen on :80
POSTGRES URL of postgres postgresql://root@pg:5432/core?sslmode=disable
REDIS URL of redis redis:6379


Get Permission

Get Permission

GET /user/:userid/conversation/:conversationid

Query to see if userid-conversationid is permissable.


Success (200 OK)

Empty body.