rest

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMatcherService added in v0.3.5

func NewMatcherService(gnm gnmatcher.GNMatcher,
	port int, enc encode.Encoder) matcherREST

NewMNewMatcherREST is a constructor for MatchREST.

func Run

func Run(m MatcherService)

Run creates and runs the HTTP API service of gnmatcher.

Types

type MatcherService added in v0.3.3

type MatcherService interface {
	// Port returns the port of the service.
	Port() int

	// Ping checks connection to the service.
	Ping() string

	mlib.Matcher

	encode.Encoder
}

MatcherService describes remote service of gnmatchter.

Jump to

Keyboard shortcuts

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