Documentation
¶
Index ¶
- func Run(m MatcherService)
- type MatcherREST
- func (mr MatcherREST) Decode(input []byte, output interface{}) error
- func (mr MatcherREST) Encode(obj interface{}) ([]byte, error)
- func (mr MatcherREST) MatchAry(names []string) []*entity.Match
- func (mr MatcherREST) Ping() string
- func (mr MatcherREST) Port() int
- func (mr MatcherREST) Version() entity.Version
- type MatcherService
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 ¶
NewMNewMatcherREST is a constructor for MatchREST.
func (MatcherREST) Decode ¶ added in v0.3.3
func (mr MatcherREST) Decode(input []byte, output interface{}) error
Decode decodes an object from a bytes slice.
func (MatcherREST) Encode ¶ added in v0.3.3
func (mr MatcherREST) Encode(obj interface{}) ([]byte, error)
Encode encodes an object into a byte slice.
func (MatcherREST) MatchAry ¶
func (mr MatcherREST) MatchAry(names []string) []*entity.Match
MatchAry takes a list of strings and matches them to known scientific names.
func (MatcherREST) Ping ¶
func (mr MatcherREST) Ping() string
Ping returns "pong" message if connection to the service did succed.
func (MatcherREST) Port ¶ added in v0.3.3
func (mr MatcherREST) Port() int
GetPort returns port number to the service.
func (MatcherREST) Version ¶ added in v0.3.3
func (mr MatcherREST) Version() entity.Version
GetVersion returns version number and build timestamp of gnmatcher.
Click to show internal directories.
Click to hide internal directories.