ggin

package
v0.0.0-...-227fe30 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 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 Client

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

func New

func New(options Options) (*Client, error)

func (*Client) Run

func (pkg *Client) Run(addr ...string) error

type Options

type Options struct {
	SpecPath         *string
	PersonRepository PersonRepository
}

type PersonRepository

type PersonRepository interface {
	All(ctx context.Context) ([]*internal.Person, error)
	ByName(ctx context.Context, name *string) ([]*internal.Person, error)
	ShortestPath(ctx context.Context, name1, name2 *string) ([]*internal.Person, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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