You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
boundary/internal/bsr/protocol.go

13 lines
300 B

// Copyright (c) HashiCorp, Inc.
// 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
}