blob: 7c6c18f1b607a80e9dc27ab87fc926f6a93cc3f4 [file] [log] [blame]
package lib
type ResponseType int
const (
ResponseFinal ResponseType = 0
ResponseStream = 1
ResponseError = 2
ResponseServerRequest = 3
ResponseStreamClose = 4
ResponseDispatcherLookup = 5
ResponseAuthRequest = 6
)
// This is basically an io.Writer interface, that allows passing error message
// strings. This is how the proxy will talk to the javascript/java clients.
type ClientWriter interface {
Send(messageType ResponseType, data interface{}) error
Error(err error)
}