cloudprober: Index | Files

package probeutils

import ""

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


Package Files


func PatternPayload Uses

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 Uses

func VerifyPayloadPattern(payload, pattern []byte) error

VerifyPayloadPattern verifies the payload built using PatternPayload.

Package probeutils imports 2 packages (graph) and is imported by 17 packages. Updated 2020-12-25. Refresh now. Tools for package owners.