ws

package
v0.0.0-...-7c909d9 Latest Latest
Warning

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

Go to latest
Published: May 8, 2012 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detokenize

func Detokenize(t tokenizer.Tokenizer) wsHandler

A websocket handler for detokenization

func Tokenize

func Tokenize(t tokenizer.Tokenizer) wsHandler

Types

type DetokenizeReponse

type DetokenizeReponse struct {
	ReqId  string                // Request ID string from orginating JsonTokenizeRequest
	Status string                // Status code
	Error  string                // Error message if any
	Data   map[string]foundToken // Maps fieldnames to foundToken instances
}

type DetokenizeRequest

type DetokenizeRequest struct {
	ReqId string // Request ID string will be returned unchanged with the response to this request
	Data  map[string]string
}

type JsonTokenizeRequest

type JsonTokenizeRequest struct {
	ReqId string            // Request ID string will be returned unchanged with the response to this request
	Data  map[string]string // Maps fieldnames to text
}

type TokenizeReponse

type TokenizeReponse struct {
	ReqId  string            // Request ID string from orginating JsonTokenizeRequest
	Status string            // Status code
	Error  string            // Error message if any
	Data   map[string]string // Maps fieldnames to token strings
}

Jump to

Keyboard shortcuts

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