Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExprField ¶
type ExprField struct {
FieldAlias string
Expr expression.Expr
}
func NewExprField ¶
func NewExprField(alias string, expr expression.Expr) *ExprField
func (*ExprField) GetJSONAlias ¶
type FieldFactory ¶
type FieldFactory struct {
Exclude map[string]Field
Include map[string]Field
FetchedValues map[string]*JSONObject
}
func BuildFields ¶
func BuildFields(reqFields jsoniter.RawMessage) (*FieldFactory, error)
func (*FieldFactory) AddField ¶
func (factory *FieldFactory) AddField(f Field)
type JSONObject ¶
type JSONObject struct {
Key []byte
Value []byte
DataType jsonparser.ValueType
}
func (*JSONObject) GetKey ¶
func (j *JSONObject) GetKey() []byte
func (*JSONObject) GetValue ¶
func (j *JSONObject) GetValue() []byte
type SimpleField ¶
func (*SimpleField) Alias ¶
func (s *SimpleField) Alias() string
func (*SimpleField) Apply ¶
func (s *SimpleField) Apply(data map[string]*JSONObject) ([]byte, error)
func (*SimpleField) GetJSONAlias ¶
func (s *SimpleField) GetJSONAlias() []byte
func (*SimpleField) Include ¶
func (s *SimpleField) Include() bool
Click to show internal directories.
Click to hide internal directories.