blob: 674117e2619232e5d9c38132a7ea076761ee1aa0 [file] [log] [blame]
// Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.examples;
// [START max]
const MAX_STRING_LENGTH uint64 = 32;
// [END max]
// [START echo]
@discoverable
closed protocol Echo {
strict EchoString(struct {
value string:MAX_STRING_LENGTH;
}) -> (struct {
response string:MAX_STRING_LENGTH;
});
};
// [END echo]
service EchoService {
regular_echo client_end:Echo;
reversed_echo client_end:Echo;
};