routes

package
v0.0.0-...-f92b78c Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryHandler

func QueryHandler(c *gin.Context)

QueryHandler is the handler for the "/query" route

func StartRouter

func StartRouter(cfg config.ServerConfig)

StartRouter starts the main route server

Types

type QueryRequestPayload

type QueryRequestPayload struct {
	QueryText string
}

QueryRequestPayload is the payload definition for the "/query" route

Jump to

Keyboard shortcuts

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