routingtree

package
v1.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package routingtree contains the routing tree implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Route

type Route struct {
	Name      string
	MountID   string
	MountPath string
}

Route represents a route inside a storage provider.

type RoutingTree

type RoutingTree struct {
	// contains filtered or unexported fields
}

RoutingTree is a tree containing routes.

func New

func New(routes map[string]string) *RoutingTree

New returns a new RoutingTree.

func (*RoutingTree) Resolve

func (t *RoutingTree) Resolve(p string) ([]*registrypb.ProviderInfo, error)

Resolve returns a list of providers for a given path.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL