resolver

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package resolver resolves a food database

Index

Constants

View Source
const DefaultMaxDepth = 10

Variables

This section is empty.

Functions

func Resolve

func Resolve(c Config, db shared.DBNodeMap) (shared.DBNodeMap, error)

Types

type Config

type Config struct {
	MaxDepth int
}

func NewDefaultConfig

func NewDefaultConfig() Config

type Resolver

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

Resolver contains the resolver data Deprecated: Deprecated in favor of using Resolve function directly

func NewResolver

func NewResolver(db shared.DBNodeMap, c Config) Resolver

NewResolver creates new resolver Deprecated: Deprecated in favor of using Resolve function directly

func (Resolver) Resolve

func (r Resolver) Resolve() error

Resolve resolves the current database Deprecated: Deprecated in favor of using Resolve function directly

Jump to

Keyboard shortcuts

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