13 lines
301 B
Go
13 lines
301 B
Go
// Copyright IBM Corp. 2020, 2026
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package bsr
|
|
|
|
// Protocol identifies the protocol of the data captured in a chunk.
|
|
type Protocol string
|
|
|
|
// ValidProtocol checks if a given Protocol is valid.
|
|
func ValidProtocol(p Protocol) bool {
|
|
return len(p) <= protocolSize
|
|
}
|