// 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. | |
package benchmarks | |
type Fortune interface { | |
Add(Fortune string) error | |
} | |
type Echo interface { | |
// Echo returns the payload that it receives. | |
Echo(Payload []byte) ([]byte | error) | |
// EchoStream returns the payload that it receives via the stream. | |
EchoStream() stream<[]byte,[]byte> error | |
} |