server

package
v0.0.0-...-58bd1cf Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 70 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SRV = &service{}

SRV service instance

Functions

func AppAuth

func AppAuth(c *xin.Context)

AppAuth use Cookie Auth or SAML Auth middleware

func IPProtect

func IPProtect(c *xin.Context)

IPProtect allow access by cidr of user or tenant

func Init

func Init()

Init initialize the app

func Reload

func Reload()

Relead reload the app

func RoleAdminProtect

func RoleAdminProtect(c *xin.Context)

func RoleCustomProtector

func RoleCustomProtector(s string) xin.HandlerFunc

func RoleDevelProtect

func RoleDevelProtect(c *xin.Context)

func RoleEditorProtect

func RoleEditorProtect(c *xin.Context)

func RoleProtect

func RoleProtect(c *xin.Context, role string)

func RoleRootProtect

func RoleRootProtect(c *xin.Context)

func RoleSuperProtect

func RoleSuperProtect(c *xin.Context)

func RoleViewerProtect

func RoleViewerProtect(c *xin.Context)

func Run

func Run()

Run start the http server

func SAMLProtect

func SAMLProtect(c *xin.Context)

func SetCtxLogProp

func SetCtxLogProp(c *xin.Context)

func Shutdown

func Shutdown()

Shutdown shutdown the app

func TenantProtect

func TenantProtect(c *xin.Context)

TenantProtect only allow access for known tenant

Types

This section is empty.

Jump to

Keyboard shortcuts

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