github.com/hernad/nomad@v1.6.112/helper/pool/conn.go (about)

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: MPL-2.0
     3  
     4  package pool
     5  
     6  type RPCType byte
     7  
     8  const (
     9  	RpcNomad     RPCType = 0x01
    10  	RpcRaft              = 0x02
    11  	RpcMultiplex         = 0x03
    12  	RpcTLS               = 0x04
    13  	RpcStreaming         = 0x05
    14  
    15  	// RpcMultiplexV2 allows a multiplexed connection to switch modes between
    16  	// RpcNomad and RpcStreaming per opened stream.
    17  	RpcMultiplexV2 = 0x06
    18  )