resolver

package
v0.0.0-...-dae269f Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	component.Base
	Dependencies struct {
		Auth     *auth.Auth
		Resolver *Resolver
	}
}

func (*API) HandleRoute

func (a *API) HandleRoute(ctx context.Context, path string) (http.Handler, error)

func (*API) Routes

func (api *API) Routes() component.Routes

type Resolver

type Resolver struct {
	component.Base
	Dependencies struct {
		Instances  *instances.Instances
		Templating *templating.Templating
		Auth       *auth.Auth
	}

	RefreshInterval time.Duration
	// contains filtered or unexported fields
}

func (*Resolver) AllPrefixes

func (resolver *Resolver) AllPrefixes(ctx context.Context) (map[string]string, error)

AllPrefixes returns a list of all prefixes from the server. Prefixes may be cached on the server

func (*Resolver) Cron

func (resolver *Resolver) Cron(ctx context.Context) error

func (*Resolver) HandleRoute

func (resolver *Resolver) HandleRoute(ctx context.Context, route string) (http.Handler, error)

func (*Resolver) Prefixes

func (resolver *Resolver) Prefixes() (prefixes map[string]string)

Prefixes returns a cached list of prefixes

func (*Resolver) Routes

func (resolver *Resolver) Routes() component.Routes

func (*Resolver) Target

func (resolver *Resolver) Target(uri string) string

func (*Resolver) TaskName

func (resolver *Resolver) TaskName() string

Jump to

Keyboard shortcuts

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