Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MatcherREST ¶
type MatcherREST struct {
// contains filtered or unexported fields
}
MatchMatcherREST implements MatcherService interface.
func NewMatcherREST ¶
func NewMatcherREST(gnm *gnmatcher.GNMatcher, port int) MatcherREST
NewMNewMatcherREST is a constructor for MatchREST.
func (MatcherREST) GetPort ¶
func (mr MatcherREST) GetPort() int
GetPort returns port number to the service.
func (MatcherREST) GetVersion ¶
func (mr MatcherREST) GetVersion() model.Version
GetVersion returns version number and build timestamp of gnmatcher.
func (MatcherREST) MatchAry ¶
func (mr MatcherREST) MatchAry(names []string) []*model.Match
MatchAry takes a list of strings and matches them to known scientific names.
func (MatcherREST) Ping ¶
func (mr MatcherREST) Ping() model.Pong
Ping returns "pong" message if connection to the service did succed.
Click to show internal directories.
Click to hide internal directories.