Files
nomad/helper/pool/conn.go
James Rasell 270ab1011e lint: Enable and fix SA9004 constant type lint errors. (#26678)
When creating constants with a custom type, each definition should
include the type definition. If only the first constant defines
this, it will have a different type to the other constants.

This change fixes occurances of this and enables SA9004 within CI
linting to catch future problems while the change is in review.
2025-09-03 07:45:29 +01:00

19 lines
415 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
package pool
type RPCType byte
const (
RpcNomad RPCType = 0x01
RpcRaft RPCType = 0x02
RpcMultiplex RPCType = 0x03
RpcTLS RPCType = 0x04
RpcStreaming RPCType = 0x05
// RpcMultiplexV2 allows a multiplexed connection to switch modes between
// RpcNomad and RpcStreaming per opened stream.
RpcMultiplexV2 RPCType = 0x06
)