grpcutil

package
v3.101.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Translate

func Translate[
	In, Out fmt.Stringer,
	Final any,
	Call func(context.Context, In, ...grpc.CallOption) (Out, error),
	MapResult func(Out) Final,
](
	ctx context.Context,
	call Call,
	i In,
	m MapResult, opts ...grpc.CallOption,
) (_ Final, err error)

Types

type LogReplayProvider

type LogReplayProvider struct {
	// contains filtered or unexported fields
}

LogReplayProvider is a provider that replays logs from a previous run.

func NewLogReplayProvider

func NewLogReplayProvider(name, version string, logs []byte) LogReplayProvider

NewLogReplayProvider creates a new LogReplayProvider from the given logs. It uses the logs to replay the recorded calls to the provider.

func (LogReplayProvider) CallFunction

func (LogReplayProvider) Close

func (p LogReplayProvider) Close() error

func (LogReplayProvider) ConfigureProvider

func (LogReplayProvider) GetFunctions

func (LogReplayProvider) GetMetadata

func (LogReplayProvider) GetProviderSchema

func (LogReplayProvider) MoveResourceState

func (LogReplayProvider) ReadDataSource

func (LogReplayProvider) ReadResource

func (LogReplayProvider) StopProvider

Jump to

Keyboard shortcuts

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