mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
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.
19 lines
415 B
Go
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
|
|
)
|