_apimeta

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRequestUserAdminStatus

func GetRequestUserAdminStatus(r *http.Request, rctx rcontext.RequestContext, user UserInfo) (bool, bool)

Types

type AuthContext added in v1.3.7

type AuthContext struct {
	User   UserInfo
	Server ServerInfo
}

func (AuthContext) IsAuthenticated added in v1.3.7

func (a AuthContext) IsAuthenticated() bool

type ServerInfo added in v1.3.5

type ServerInfo struct {
	ServerName string
}

type UserInfo

type UserInfo struct {
	UserId      string
	AccessToken string
	IsShared    bool
}

Jump to

Keyboard shortcuts

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