internal

package
v0.0.0-...-b7b0d94 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package internal allows unit testing without requiring wasm imports.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Klog

type Klog struct {
	api.UnimplementedKlog

	Severity
	LogFn  func(severity Severity, msg []byte)
	LogSFn func(severity Severity, msg string, kvs []byte)
}

func (*Klog) Error

func (k *Klog) Error(args ...any)

Error implements the same method as documented on api.Klog.

func (*Klog) ErrorS

func (k *Klog) ErrorS(err error, msg string, keysAndValues ...any)

ErrorS implements the same method as documented on api.Klog.

func (*Klog) Info

func (k *Klog) Info(args ...any)

Info implements the same method as documented on api.Klog.

func (*Klog) InfoS

func (k *Klog) InfoS(msg string, keysAndValues ...any)

InfoS implements the same method as documented on api.Klog.

type Severity

type Severity = int32

Severity is the same as severity.Severity in klog

const (
	InfoLog Severity = iota
	WarningLog
	ErrorLog
	FatalLog
)

Jump to

Keyboard shortcuts

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