rest

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(vs VerifierService)

Run starts HTTP/1 service for scientific names verification.

Types

type VerifierService

type VerifierService interface {
	// Ping checks if the service is alive.
	Ping() string

	// Versioner returns Version of gnames project.
	gn.Versioner

	// Port returns port of the HTTP/1 service.
	Port() int

	gnames.GNames

	encode.Encoder
}

VerifierService interface is the API behing RESTful service.

func NewVerifierService

func NewVerifierService(g gnames.GNames, port int, enc encode.Encoder) VerifierService

NewVerifierService is a constructor for the implementation of the VerifierService interface.

Jump to

Keyboard shortcuts

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