service

package
v0.0.0-...-3e6ee68 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deps

type Deps struct {
	Worker Worker
	Port   int
}

type Server

type Server interface {
	common.Runner
}

func New

func New(deps Deps) Server

type ShortestPathArgs

type ShortestPathArgs = api.ShortestPathRequest

type ShortestPathResult

type ShortestPathResult = api.ShortestPathResponse

type Worker

type Worker interface {
	CalculateArcFlags(ctx context.Context) error
	ShortestPath(ctx context.Context, args ShortestPathArgs) (ShortestPathResult, error)
}

Jump to

Keyboard shortcuts

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