entryfetch

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBody

func DecodeBody(entry *client.SessionEntry, target string) ([]byte, string, error)

DecodeBody extracts and base64-decodes the body for a given target ("request" or "response"). Returns the decoded bytes and the content-type header value. Does not filter by content type.

Returns (nil, "", nil) when the entry has no response (target "response") or the body is nil/empty.

func FetchEntry

func FetchEntry(ctx context.Context, c *client.Client, ec *cache.EntryCache, sessionID, entryID string) (*client.SessionEntry, error)

FetchEntry retrieves an entry by ID, checking the cache first. If not cached, it fetches from the API client and caches the result.

Types

This section is empty.

Jump to

Keyboard shortcuts

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