replayer

package module
v0.0.0-...-e8e7305 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

Replayer

Replayer is a library which provides methods for parsing and replaying binary logs of g* protocol messages.

Documentation

Overview

Package replayer provides methods for parsing and replaying logs of g* protocol messanges.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRIBIDiff

func GRIBIDiff(rec *Recording, res *Results) string

GRIBIDiff returns the diff of the final gRIBI state in the replay results with that of the given recording.

Types

type Config

type Config = internal.Config

Config holds configuration for the replay, including RPC clients for g* protocols.

type Recording

type Recording = internal.Recording

Recording is a parsed gRIBI binary log record.

func ParseBytes

func ParseBytes(t *testing.T, bytes []byte) *Recording

ParseBytes parses a binary log from bytes.

func ParseFile

func ParseFile(t *testing.T, path string) *Recording

ParseFile parses a binary log at the specified file path.

func ParseURL

func ParseURL(t *testing.T, path string) *Recording

ParseURL parses a binary log at the specified URL.

type Results

type Results = internal.Results

Results contains the results of replayed requests.

func Replay

func Replay(ctx context.Context, t *testing.T, r *Recording, config *Config) *Results

Replay sends the parsed record over the given gRIBI client.

Directories

Path Synopsis
Package internal provides internal implementations of the replayer API.
Package internal provides internal implementations of the replayer API.
logcli is a CLI for interacting with dvt replay logs.
logcli is a CLI for interacting with dvt replay logs.
cmds/interfaces
Package interfaces defines the interfaces analysis command for the log CLI.
Package interfaces defines the interfaces analysis command for the log CLI.
cmds/merge
Package merge is a command for merging binary logs into a single log, ordered chronologically.
Package merge is a command for merging binary logs into a single log, ordered chronologically.
cmds/view
Package view is a command for viewing the contents of a binary log file in a human-readable format.
Package view is a command for viewing the contents of a binary log file in a human-readable format.
proto
log

Jump to

Keyboard shortcuts

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