rule

package
v0.0.0-...-9853328 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTRule

type JWTRule struct {
	// contains filtered or unexported fields
}

func NewJWTRule

func NewJWTRule(name string, v map[string]any) *JWTRule

func (*JWTRule) Check

func (t *JWTRule) Check(ctx metadata.MD) error

func (*JWTRule) Index

func (t *JWTRule) Index() string

func (*JWTRule) Kind

func (t *JWTRule) Kind() string

func (*JWTRule) Name

func (t *JWTRule) Name() string

func (*JWTRule) Release

func (t *JWTRule) Release() error

func (*JWTRule) String

func (t *JWTRule) String() string

func (*JWTRule) UnmarshalJSON

func (t *JWTRule) UnmarshalJSON(data []byte) error

type PwdRule

type PwdRule struct {
	// contains filtered or unexported fields
}

func NewPwdRule

func NewPwdRule(name, pwd string) *PwdRule

func (*PwdRule) Check

func (t *PwdRule) Check(ctx metadata.MD) error

func (*PwdRule) Index

func (t *PwdRule) Index() string

func (*PwdRule) Kind

func (t *PwdRule) Kind() string

func (*PwdRule) Name

func (t *PwdRule) Name() string

func (*PwdRule) Release

func (t *PwdRule) Release()

func (*PwdRule) String

func (t *PwdRule) String() string

type Rule

type Rule interface {
	Kind() string
	Name() string
	Index() string
	Check(metadata.MD) error
	String() string
}

Jump to

Keyboard shortcuts

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