{{! Copyright (c) Meta Platforms, Inc. and affiliates. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. }}{{! }}type {{service:go_name}} interface { {{#service:extends?}} {{#service:extends}} // Inherited/extended service {{service:go_qualified_name}} {{/service:extends}} {{/service:extends?}} {{#service:functions}} {{#function:go_supported?}} {{> svc/func_signature}} {{/function:go_supported?}} {{/service:functions}} } type {{service:go_name}}ChannelClientInterface interface { thrift.ClientInterface {{service:go_name}} } type {{service:go_name}}ClientInterface interface { thrift.ClientInterface {{^program:compat?}} {{#service:extends?}} {{#service:extends}} // Inherited/extended service {{service:go_qualified_name}}ClientInterface {{/service:extends}} {{/service:extends?}} {{/program:compat?}} {{#service:functions}} {{#function:go_supported?}} {{> svc/func_signature_no_ctx}} {{/function:go_supported?}} {{/service:functions}} } {{!COMPAT: backwards compatibility Currently there are a bunch of use cases that implement ClientInterface without Context functions. 1. We need to manually move them over to ContextClientInterface 2. Add func_signature_with_ctx to ClientInterface 3. Move them back to ClientInterface 4. Delete ContextClientInterface }}{{! }}type {{service:go_name}}ContextClientInterface interface { {{service:go_name}}ClientInterface {{#service:extends?}} {{#service:extends}} // Inherited/extended service {{service:go_qualified_name}}ContextClientInterface {{/service:extends}} {{/service:extends?}} {{#service:functions}} {{#function:go_supported?}} {{> svc/func_signature_with_ctx}} {{/function:go_supported?}} {{/service:functions}} }