Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(gnps GNParserService)
Run starts the GNParser web service and servies both RESTful API and a website.
Types ¶
type GNParserService ¶
type GNParserService interface { gnparser.GNParser // Ping is a method to check if the service is running. Returns "pong". Ping() string // Port returns the port of the service. Port() int }
GNParserService is an interface that provides functionality for GNParser RESTful service.
func NewGNParserService ¶
func NewGNParserService(gnp gnparser.GNParser, port int) GNParserService
NewGNParserService creates a new object that implements GNParserService interface.
Click to show internal directories.
Click to hide internal directories.