model

package
v0.0.0-...-f96232b Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

type Encoder jsoniter.ValEncoder

type EncoderMap

type EncoderMap map[string]jsoniter.ValEncoder

过滤处理函数

func LoadEncoderMap

func LoadEncoderMap() EncoderMap

func (EncoderMap) AddEncoder

func (fm EncoderMap) AddEncoder(name string, fun Encoder)

type Model

type Model struct {
	Policy [][]string
}

func NewModelFromFile

func NewModelFromFile(modelPath string) (*Model, error)

type PolicyRule

type PolicyRule struct {
	Sub     string
	Model   string
	Fields  []string
	Encoder Encoder
}

Jump to

Keyboard shortcuts

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