Back to godoc.org

Package server

v1.7.1
Latest Go to latest

The highest tagged major version is .

Published: Jan 5, 2018 | License: Apache-2.0 | Module: code.sajari.com/kagome

Index

Variables

var (
	CommandName = "server"
	Description = `run tokenize server`

	ErrorWriter = os.Stderr
)

subcommand property

func OptionCheck

func OptionCheck(args []string) (err error)

OptionCheck receives a slice of args and returns an error if it was not successfully parsed

func PrintDefaults

func PrintDefaults(eh flag.ErrorHandling)

PrintDefaults prints out the default flags

func Run

func Run(args []string) error

Run receives the slice of args and executes the server

func Usage

func Usage()

Usage provides information on the use of the server

type TokenizeDemoHandler

type TokenizeDemoHandler struct {
	// contains filtered or unexported fields
}

TokenizeDemoHandler represents the tokenizer demo server struct

func (*TokenizeDemoHandler) ServeHTTP

func (h *TokenizeDemoHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type TokenizeHandler

type TokenizeHandler struct {
	// contains filtered or unexported fields
}

TokenizeHandler represents the tokenizer API server struct

func (*TokenizeHandler) ServeHTTP

func (h *TokenizeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier