Documentation ¶
Index ¶
- func WithDatasource() nodes.Option
- func WithMultipleRoots() nodes.Option
- func WithPermanentPrefix() nodes.Option
- func WithRootResolver() nodes.Option
- func WithWorkspace() nodes.Option
- type DataSourceHandler
- type MultipleRootsHandler
- func (m *MultipleRootsHandler) Adapt(c nodes.Handler, options nodes.RouterOptions) nodes.Handler
- func (m *MultipleRootsHandler) ListNodes(ctx context.Context, in *tree.ListNodesRequest, opts ...grpc.CallOption) (tree.NodeProvider_ListNodesClient, error)
- func (m *MultipleRootsHandler) ReadNode(ctx context.Context, in *tree.ReadNodeRequest, opts ...grpc.CallOption) (*tree.ReadNodeResponse, error)
- type PermanentPrefix
- type WorkspaceHandler
- func (a *WorkspaceHandler) Adapt(c nodes.Handler, options nodes.RouterOptions) nodes.Handler
- func (a *WorkspaceHandler) ListNodes(ctx context.Context, in *tree.ListNodesRequest, opts ...grpc.CallOption) (tree.NodeProvider_ListNodesClient, error)
- func (a *WorkspaceHandler) ReadNode(ctx context.Context, in *tree.ReadNodeRequest, opts ...grpc.CallOption) (*tree.ReadNodeResponse, error)
- type WorkspaceRootResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithDatasource ¶
func WithMultipleRoots ¶
func WithPermanentPrefix ¶ added in v4.3.2
func WithRootResolver ¶
func WithWorkspace ¶
Types ¶
type DataSourceHandler ¶
type DataSourceHandler struct {
abstract.BranchFilter
}
DataSourceHandler is an BranchFilter adding/extracting datasource name from the path.
func (*DataSourceHandler) Adapt ¶
func (v *DataSourceHandler) Adapt(c nodes.Handler, options nodes.RouterOptions) nodes.Handler
type MultipleRootsHandler ¶
type MultipleRootsHandler struct {
abstract.BranchFilter
}
MultipleRootsHandler handle special case of multiple-roots workspaces.
func NewPathMultipleRootsHandler ¶
func NewPathMultipleRootsHandler() *MultipleRootsHandler
func (*MultipleRootsHandler) Adapt ¶
func (m *MultipleRootsHandler) Adapt(c nodes.Handler, options nodes.RouterOptions) nodes.Handler
func (*MultipleRootsHandler) ListNodes ¶
func (m *MultipleRootsHandler) ListNodes(ctx context.Context, in *tree.ListNodesRequest, opts ...grpc.CallOption) (tree.NodeProvider_ListNodesClient, error)
func (*MultipleRootsHandler) ReadNode ¶
func (m *MultipleRootsHandler) ReadNode(ctx context.Context, in *tree.ReadNodeRequest, opts ...grpc.CallOption) (*tree.ReadNodeResponse, error)
type PermanentPrefix ¶ added in v4.3.2
type PermanentPrefix struct { abstract.BranchFilter Prefix string }
PermanentPrefix is an BranchFilter finding workspace root(s) based on the path.
func NewPermanentPrefix ¶ added in v4.3.2
func NewPermanentPrefix(p string) *PermanentPrefix
func (*PermanentPrefix) Adapt ¶ added in v4.3.2
func (v *PermanentPrefix) Adapt(c nodes.Handler, options nodes.RouterOptions) nodes.Handler
type WorkspaceHandler ¶
type WorkspaceHandler struct {
abstract.BranchFilter
}
WorkspaceHandler is an BranchFilter extracting workspace and managing path inside the workspace.
func (*WorkspaceHandler) Adapt ¶
func (a *WorkspaceHandler) Adapt(c nodes.Handler, options nodes.RouterOptions) nodes.Handler
func (*WorkspaceHandler) ListNodes ¶
func (a *WorkspaceHandler) ListNodes(ctx context.Context, in *tree.ListNodesRequest, opts ...grpc.CallOption) (tree.NodeProvider_ListNodesClient, error)
func (*WorkspaceHandler) ReadNode ¶
func (a *WorkspaceHandler) ReadNode(ctx context.Context, in *tree.ReadNodeRequest, opts ...grpc.CallOption) (*tree.ReadNodeResponse, error)
type WorkspaceRootResolver ¶
type WorkspaceRootResolver struct {
abstract.BranchFilter
}
WorkspaceRootResolver is an BranchFilter finding workspace root(s) based on the path.
func NewWorkspaceRootResolver ¶
func NewWorkspaceRootResolver() *WorkspaceRootResolver
func (*WorkspaceRootResolver) Adapt ¶
func (v *WorkspaceRootResolver) Adapt(c nodes.Handler, options nodes.RouterOptions) nodes.Handler
Click to show internal directories.
Click to hide internal directories.