| // Copyright 2015 The Vanadium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| ResponseFinal ResponseType = 0 |
| ResponseServerRequest = 3 |
| ResponseDispatcherLookup = 5 |
| ResponseValidate = 8 // Request to validate caveats. |
| ResponseLog = 9 // Sends a message to be logged. |
| // 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 |