search

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	Q      string `json:"q"`
	Offset int    `json:"o,omitempty"`
}

type Result

type Result struct {
	T        string `json:"t"`
	Key      string `json:"key"`
	Prelude  string `json:"prelude"`
	Postlude string `json:"postlude"`
	Loc      string `json:"loc"`
}

type Results

type Results []*Result

type Service

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

func NewService

func NewService(coll *collection.Service, req *request.Service, logger *logrus.Logger) *Service

func (Service) Run

func (s Service) Run(p *Params, userID *uuid.UUID, role string) (Results, error)

Jump to

Keyboard shortcuts

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