probeutils

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 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.

Jump to

Keyboard shortcuts

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