Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller resolves LookupObjectType directives.
func NewController ¶
func NewController(lookupFunc LookupObjectTypeFunc) *Controller
NewController creates a controller with a lookup function.
func (*Controller) Execute ¶
func (c *Controller) Execute(ctx context.Context) error
Execute executes the controller.
func (*Controller) GetControllerInfo ¶
func (c *Controller) GetControllerInfo() *controller.Info
GetControllerInfo returns information about the controller.
func (*Controller) HandleDirective ¶
func (c *Controller) HandleDirective(ctx context.Context, di directive.Instance) ([]directive.Resolver, error)
HandleDirective asks if the handler can resolve the directive.
type LookupObjectTypeFunc ¶
type LookupObjectTypeFunc = func(ctx context.Context, typeID string) (objecttype.ObjectType, error)
LookupObjectTypeFunc looks up an ObjectType by its type ID. Returns the ObjectType or nil if not found.
Click to show internal directories.
Click to hide internal directories.