Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidArgument = errors.New("invalid argument")
ErrInvalidArgument is used if the user provides invalid arguments.
Functions ¶
This section is empty.
Types ¶
type PathService ¶
type PathService interface {
ShortestPath(origin, destination string) ([]path.TransitPath, error)
}
PathService provides the shortest path "algorithm".
func NewLoggingMiddleware ¶
func NewLoggingMiddleware(logger log.Logger, next PathService) PathService
NewLoggingMiddleware creates a new logging middleware.
Click to show internal directories.
Click to hide internal directories.