probeutils

package
Version: v0.11.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 2 Imported by: 23

Documentation

Overview

Package probeutils implements utilities that are shared across multiple probe types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PatternPayload

func PatternPayload(payload, pattern []byte)

PatternPayload builds a payload that can be verified using VerifyPayloadPattern. It repeats the pattern to fill the payload []byte slice. Last remaining bytes (len(payload) mod patternSize) are left unpopulated (hence set to 0 bytes).

func VerifyPayloadPattern

func VerifyPayloadPattern(payload, pattern []byte) error

VerifyPayloadPattern verifies the payload built using PatternPayload.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL