api

package
v0.0.0-...-84f1622 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Binds onto eureka uapi

Index

Constants

View Source
const (
	SESSION_EXPIRY = 60 * 30 // 30 minutes
)

Variables

This section is empty.

Functions

func Authorize

func Authorize(r uapi.Route, req *http.Request) (uapi.AuthData, uapi.HttpResponse, bool)

Authorizes a request

func Setup

func Setup()

Types

type DefaultResponder

type DefaultResponder struct{}

func (DefaultResponder) New

func (d DefaultResponder) New(err string, ctx map[string]string) any

type PermissionCheck

type PermissionCheck struct {
	Permission func(d uapi.Route, r *http.Request) string
	GuildID    func(d uapi.Route, r *http.Request) string
}

Jump to

Keyboard shortcuts

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