router

package
v0.0.0-...-ba036dd Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Route

type Route struct {
	To       string   `json:"to"`
	HopCount int      `json:"hopCount"`
	Route    []string `json:"route"`
}

type Router

type Router interface {
	RoutesOfToken(addr string, hopCount int, reverse bool) ([]Route, error)
	Routes(from, to string, hopCount int) ([]Route, error)
}

func New

func New(repo RouterRepo) Router

type RouterRepo

type RouterRepo interface {
	RoutesOfToken(addr string, hopCount int, reverse bool) ([]Route, error)
	Routes(from, to string, hopCount int) ([]Route, error)
}

Jump to

Keyboard shortcuts

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