2023-04-10 15:36:59 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2018-01-12 21:58:44 +00:00
|
|
|
package pool
|
|
|
|
|
|
|
|
type RPCType byte
|
|
|
|
|
|
|
|
const (
|
|
|
|
RpcNomad RPCType = 0x01
|
|
|
|
RpcRaft = 0x02
|
|
|
|
RpcMultiplex = 0x03
|
|
|
|
RpcTLS = 0x04
|
2018-01-19 00:51:49 +00:00
|
|
|
RpcStreaming = 0x05
|
|
|
|
|
|
|
|
// RpcMultiplexV2 allows a multiplexed connection to switch modes between
|
|
|
|
// RpcNomad and RpcStreaming per opened stream.
|
|
|
|
RpcMultiplexV2 = 0x06
|
2018-01-12 21:58:44 +00:00
|
|
|
)
|