schemaregistry

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SchemaRegistry specific constant
	// Compatibility modes - see https://docs.confluent.io/platform/current/schema-registry/develop/api.html#schemaregistry-api
	KafkaSchemaRegistryCompatibilityBackward      = "BACKWARD"
	KafkaSchemaRegistryCompatibilityBackwardTrans = "BACKWARD_TRANSITIVE"
	KafkaSchemaRegistryCompatibilityForward       = "FORWARD"
	KafkaSchemaRegistryCompatibilityForwardTrans  = "FORWARD_TRANSITIVE"
	KafkaSchemaRegistryCompatibilityFull          = "FULL"
	KafkaSchemaRegistryCompatibilityFullTrans     = "FULL_TRANSITIVE"
	KafkaSchemaRegistryCompatibilityNone          = "NONE"
	// Cache timeout
	CacheConnTimeout = 10 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(options ...Option) (*Client, error)

func (*Client) CreateSchema

func (c *Client) CreateSchema(schema *v1alpha1.KafkaSchemaSpec) error

CreateSchema creates or updates a schema or returns an error

type Option

type Option func(*Client) error

Option is a type of options for Client

func URL

func URL(url string) Option

SchemeRegistryURL allows the Schema Registry URL to be set

Jump to

Keyboard shortcuts

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