Documentation ¶
Index ¶
- func WithBrowser() nodes.Option
- func WithResolver() nodes.Option
- type BrowserHandler
- func (v *BrowserHandler) Adapt(c nodes.Handler, options nodes.RouterOptions) nodes.Handler
- func (v *BrowserHandler) ListNodes(ctx context.Context, in *tree.ListNodesRequest, opts ...grpc.CallOption) (streamer tree.NodeProvider_ListNodesClient, e error)
- func (v *BrowserHandler) ReadNode(ctx context.Context, in *tree.ReadNodeRequest, opts ...grpc.CallOption) (*tree.ReadNodeResponse, error)
- type ResolverHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithBrowser ¶
func WithResolver ¶
Types ¶
type BrowserHandler ¶
BrowserHandler is used by admin mode to list virtual nodes instead of their resolved values.
func NewVirtualNodesBrowser ¶
func NewVirtualNodesBrowser() *BrowserHandler
func (*BrowserHandler) Adapt ¶
func (v *BrowserHandler) Adapt(c nodes.Handler, options nodes.RouterOptions) nodes.Handler
func (*BrowserHandler) ListNodes ¶
func (v *BrowserHandler) ListNodes(ctx context.Context, in *tree.ListNodesRequest, opts ...grpc.CallOption) (streamer tree.NodeProvider_ListNodesClient, e error)
ListNodes Append virtual nodes to the datasources list if admin is listing the root of the tree
func (*BrowserHandler) ReadNode ¶
func (v *BrowserHandler) ReadNode(ctx context.Context, in *tree.ReadNodeRequest, opts ...grpc.CallOption) (*tree.ReadNodeResponse, error)
ReadNode creates a fake node if admin is reading info about a virtual node
type ResolverHandler ¶
type ResolverHandler struct {
abstract.BranchFilter
}
ResolverHandler dynamically resolves virtual nodes to their runtime value.
func NewVirtualNodesHandler ¶
func NewVirtualNodesHandler() *ResolverHandler
func (*ResolverHandler) Adapt ¶
func (v *ResolverHandler) Adapt(c nodes.Handler, options nodes.RouterOptions) nodes.Handler
Click to show internal directories.
Click to hide internal directories.