mirror of
https://github.com/status-im/consul.git
synced 2025-01-27 05:57:03 +00:00
5fb9df1640
* Adding explicit MPL license for sub-package This directory and its subdirectories (packages) contain files licensed with the MPLv2 `LICENSE` file in this directory and are intentionally licensed separately from the BSL `LICENSE` file at the root of this repository. * Adding explicit MPL license for sub-package This directory and its subdirectories (packages) contain files licensed with the MPLv2 `LICENSE` file in this directory and are intentionally licensed separately from the BSL `LICENSE` file at the root of this repository. * Updating the license from MPL to Business Source License Going forward, this project will be licensed under the Business Source License v1.1. Please see our blog post for more details at <Blog URL>, FAQ at www.hashicorp.com/licensing-faq, and details of the license at www.hashicorp.com/bsl. * add missing license headers * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
39 lines
886 B
Protocol Buffer
39 lines
886 B
Protocol Buffer
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
syntax = "proto3";
|
|
|
|
package hashicorp.consul.dns;
|
|
|
|
import "annotations/ratelimit/ratelimit.proto";
|
|
|
|
option go_package = "github.com/hashicorp/consul/proto-public/pbdns";
|
|
|
|
service DNSService {
|
|
// Query sends a DNS request over to Consul server and returns a DNS reply message.
|
|
rpc Query(QueryRequest) returns (QueryResponse) {
|
|
option (hashicorp.consul.internal.ratelimit.spec) = {
|
|
operation_type: OPERATION_TYPE_READ,
|
|
operation_category: OPERATION_CATEGORY_DNS
|
|
};
|
|
}
|
|
}
|
|
|
|
enum Protocol {
|
|
PROTOCOL_UNSET_UNSPECIFIED = 0;
|
|
PROTOCOL_TCP = 1;
|
|
PROTOCOL_UDP = 2;
|
|
}
|
|
|
|
message QueryRequest {
|
|
// msg is the DNS request message.
|
|
bytes msg = 1;
|
|
// protocol is the protocol of the request
|
|
Protocol protocol = 2;
|
|
}
|
|
|
|
message QueryResponse {
|
|
// msg is the DNS reply message.
|
|
bytes msg = 1;
|
|
}
|