console

package
v0.0.0-...-f94be1b Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CtxKey = contextKey("console-logs")

CtxKey is a key against which api request will get stored in the context.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) (*[]string, error)

FromContext retrieves the logs saved in the context.

func LimitConsoleString

func LimitConsoleString(console string) string

LimitConsoleString truncates the data if the string is more than 10KB and returns a new string

func NewContext

func NewContext(ctx context.Context, consoleStr *[]string) context.Context

NewContext returns a context with the passed value stored against the context key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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