parser

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy struct {
	Roles          []string
	Permissions    map[string][]string
	UseValueAsRole bool
}

Policy represents the security rules extracted from a struct tag.

func Parse

func Parse(tag string) *Policy

Parse extracts policy information from a 'guard' struct tag.

Jump to

Keyboard shortcuts

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