Documentation ¶
Overview ¶
Package resolver provides interface and default implementation of resolvers for getting objects from references.
Usage:
package main import ( "github.com/insolar/insolar/genesis/model/class" "github.com/insolar/insolar/genesis/model/object" } func main() { resolver := NewChildResolver(parent) obj, err := resolver.GetObject(ref, class.ObjectID) res := obj.(object.Object) }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChildResolver ¶
type ChildResolver struct {
// contains filtered or unexported fields
}
ChildResolver is resolver for ChildScope references.
func NewChildResolver ¶
func NewChildResolver(parent object.Parent) *ChildResolver
NewChildResolver creates new ChildResolver instance.
type ContextResolver ¶
type ContextResolver struct {
// contains filtered or unexported fields
}
ContextResolver is resolver for ContextScope references.
func NewContextResolver ¶
func NewContextResolver(parent object.Parent) *ContextResolver
NewContextResolver creates new ContextResolver instance.
type GlobalResolver ¶
type GlobalResolver struct {
// contains filtered or unexported fields
}
GlobalResolver is resolver for GlobalScope references.
func NewGlobalResolver ¶
func NewGlobalResolver() *GlobalResolver
NewGlobalResolver creates new GlobalResolver instance. TODO: pass map?
Click to show internal directories.
Click to hide internal directories.