file

package
v0.0.0-...-692e367 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResolver

func NewResolver(runtime runtime.Runtime) resolver.Resolver

Types

type Config

type Config struct {
	Cache bool
	File  string `env:"FILEPATH" comment:"Filepath to resolver storage file. default(.lb.resolver in home dir)"`
}

type Options

type Options struct {
	Name string
}

type Plugin

type Plugin interface {
	Print()
}

type Resolver

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

func (*Resolver) Lookup

func (c *Resolver) Lookup(service string, opts ...resolver.LookupOption) (route.List, error)

func (*Resolver) OnStart

func (c *Resolver) OnStart(ctx context.Context) error

func (*Resolver) Print

func (c *Resolver) Print()

func (*Resolver) Table

func (c *Resolver) Table() resolver.Table

type Route

type Route struct {
	Route   rt.Route  `json:"route"`
	Updated time.Time `json:"updated"`
}

Jump to

Keyboard shortcuts

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