Documentation ¶
Index ¶
- Variables
- func JSONPath(path []string) string
- func MustAtoi(i string) int
- func NewSchema(b []byte) (*jsonschema.Schema, error)
- func Register(c *jsonschema.Compiler)
- func SplitSpec(s string) (string, string)
- func Unmarshal(r io.Reader) (interface{}, error)
- type AJSONGetter
- type BindNode
- type BindPathError
- type Binder
- type GJSONGetter
- type Getter
- type GvalJSONPathGetter
- type MapGetter
- type NewGetter
- type NilGetter
- type OJGGetter
- type OJSONPathGetter
- type ParsedCache
- type SliceGetter
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type AJSONGetter ¶
type AJSONGetter struct {
// contains filtered or unexported fields
}
func NewAJSONGetter ¶
func NewAJSONGetter(spec string) (*AJSONGetter, error)
func (*AJSONGetter) Get ¶
func (g *AJSONGetter) Get(ctx context.Context, obj interface{}) (interface{}, bool, error)
func (*AJSONGetter) New ¶
func (g *AJSONGetter) New(b []byte) (interface{}, error)
type BindNode ¶
type BindNode struct { Path string Next interface{} // contains filtered or unexported fields }
type BindPathError ¶
type BindPathError string
func (BindPathError) Error ¶
func (e BindPathError) Error() string
type GJSONGetter ¶
type GJSONGetter struct {
// contains filtered or unexported fields
}
func NewGJSONGetter ¶
func NewGJSONGetter(spec string) *GJSONGetter
func (*GJSONGetter) Get ¶
func (g *GJSONGetter) Get(ctx context.Context, obj interface{}) (interface{}, bool, error)
func (*GJSONGetter) New ¶
func (g *GJSONGetter) New(b []byte) (interface{}, error)
type GvalJSONPathGetter ¶
type GvalJSONPathGetter struct {
// contains filtered or unexported fields
}
func NewGvalJSONPathGetter ¶
func NewGvalJSONPathGetter(spec string) (*GvalJSONPathGetter, error)
func (*GvalJSONPathGetter) Get ¶
func (g *GvalJSONPathGetter) Get(ctx context.Context, obj interface{}) (interface{}, bool, error)
func (*GvalJSONPathGetter) New ¶
func (g *GvalJSONPathGetter) New(b []byte) (interface{}, error)
type MapGetter ¶
type MapGetter struct{}
func NewMapGetter ¶
func NewMapGetter() *MapGetter
type NilGetter ¶
type NilGetter struct{}
func NewNilGetter ¶
func NewNilGetter() *NilGetter
type OJGGetter ¶
type OJGGetter struct {
// contains filtered or unexported fields
}
func NewOJGGetter ¶
type OJSONPathGetter ¶
type OJSONPathGetter struct {
// contains filtered or unexported fields
}
func NewOJSONPathGetter ¶
func NewOJSONPathGetter(spec string) (*OJSONPathGetter, error)
func (*OJSONPathGetter) Get ¶
func (g *OJSONPathGetter) Get(ctx context.Context, obj interface{}) (interface{}, bool, error)
func (*OJSONPathGetter) New ¶
func (g *OJSONPathGetter) New(b []byte) (interface{}, error)
type ParsedCache ¶
type ParsedCache map[string]interface{}
type SliceGetter ¶
type SliceGetter struct {
// contains filtered or unexported fields
}
func NewSliceGetter ¶
func NewSliceGetter(length int) *SliceGetter
func (*SliceGetter) Get ¶
func (g *SliceGetter) Get(context.Context, interface{}) (interface{}, bool, error)
func (*SliceGetter) New ¶
func (g *SliceGetter) New([]byte) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.