requests

package
v0.0.0-...-347cd60 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSessionPermission

func CheckSessionPermission(token string, permission uint, session *database.Session) bool

CheckSessionPermission checks if the session has the required permission level (returns true if it doesn't)

func GetSession

func GetSession(id uuid.UUID, session *database.Session) bool

GetSession gets the session from the database (returns false if it doesn't exist)

func SendEventToNode

func SendEventToNode(nodeID uint, account string, event Event) error

Types

type Event

type Event struct {
	Sender string                 `json:"sender"` // Sender identifier ("0" for system)
	Name   string                 `json:"name"`
	Data   map[string]interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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