models

package
v0.0.0-...-61881c5 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2016 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Result   string
	ServerId string
	Duration string
}

func (Result) String

func (r Result) String() string

type Results

type Results []Result
type Search interface {
	Search(string) Result
}

type SearchServer

type SearchServer struct {
	Id string
	// contains filtered or unexported fields
}

func NewSearchServer

func NewSearchServer(name string, latency int) SearchServer

Create a new search server

func (SearchServer) Search

func (s SearchServer) Search(query string) Result

Perform a search operation

Jump to

Keyboard shortcuts

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