frontend

package
v0.0.0-...-dd9be88 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ResultsPerSearch = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LinkRepository     LinkRepository
	DocumentRepository DocumentRepository
	ListenAddr         string
}

type DocumentRepository

type DocumentRepository interface {
	Search(query index.Query) (index.Iterator, error)
}

type LinkRepository

type LinkRepository interface {
	SaveLink(*graph.Link) error
}

type Service

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

func NewService

func NewService(cfg Config) (*Service, error)

func (*Service) Name

func (svc *Service) Name() string

func (*Service) Run

func (svc *Service) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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