avroregistrytest

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context, t T, x interface{}, topic string) error

Register an avro type in a registry for a particular topic and then delete the subject at the end of the test.

The following environment variables can be used to configure the connection parameters:

  • $KAFKA_REGISTRY_ADDR The Kafka registry address in host:port form. If this is empty, localhost:8084 will be used.

This requires go1.14 or higher

Types

type T

type T interface {
	Cleanup(f func())
	Errorf(f string, a ...interface{})
}

T represents a test (the usual implementation being *testing.T).

Jump to

Keyboard shortcuts

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