Documentation ¶
Index ¶
- Constants
- Variables
- type CachedSchemaRegistryClient
- func (this *CachedSchemaRegistryClient) GetByID(id int32) (avro.Schema, error)
- func (this *CachedSchemaRegistryClient) GetLatestSchemaMetadata(subject string) (*SchemaMetadata, error)
- func (this *CachedSchemaRegistryClient) GetVersion(subject string, schema avro.Schema) (int32, error)
- func (this *CachedSchemaRegistryClient) Register(subject string, schema avro.Schema) (int32, error)
- type CompatibilityLevel
- type ErrorMessage
- type GetSchemaResponse
- type GetSubjectVersionResponse
- type RegisterSchemaResponse
- type RegistryAuth
- type SchemaMetadata
- type SchemaRegistryClient
Constants ¶
View Source
const ( GET_SCHEMA_BY_ID = "/schemas/ids/%d" GET_SUBJECTS = "/subjects" GET_SUBJECT_VERSIONS = "/subjects/%s/versions" GET_SPECIFIC_SUBJECT_VERSION = "/subjects/%s/versions/%s" REGISTER_NEW_SCHEMA = "/subjects/%s/versions" CHECK_IS_REGISTERED = "/subjects/%s" TEST_COMPATIBILITY = "/compatibility/subjects/%s/versions/%s" CONFIG = "/config" )
View Source
const ( SCHEMA_REGISTRY_V1_JSON = "application/vnd.schemaregistry.v1+json" SCHEMA_REGISTRY_V1_JSON_WEIGHTED = "application/vnd.schemaregistry.v1+json" SCHEMA_REGISTRY_MOST_SPECIFIC_DEFAULT = "application/vnd.schemaregistry.v1+json" SCHEMA_REGISTRY_DEFAULT_JSON = "application/vnd.schemaregistry+json" SCHEMA_REGISTRY_DEFAULT_JSON_WEIGHTED = "application/vnd.schemaregistry+json qs=0.9" JSON = "application/json" JSON_WEIGHTED = "application/json qs=0.5" GENERIC_REQUEST = "application/octet-stream" )
Variables ¶
View Source
var PREFERRED_RESPONSE_TYPES = []string{SCHEMA_REGISTRY_V1_JSON, SCHEMA_REGISTRY_DEFAULT_JSON, JSON}
Functions ¶
This section is empty.
Types ¶
type CachedSchemaRegistryClient ¶
type CachedSchemaRegistryClient struct {
// contains filtered or unexported fields
}
func NewCachedSchemaRegistryClient ¶
func NewCachedSchemaRegistryClient(registryURL string) *CachedSchemaRegistryClient
func NewCachedSchemaRegistryClientAuth ¶
func NewCachedSchemaRegistryClientAuth(registryURL string, auth *RegistryAuth) *CachedSchemaRegistryClient
func (*CachedSchemaRegistryClient) GetByID ¶
func (this *CachedSchemaRegistryClient) GetByID(id int32) (avro.Schema, error)
func (*CachedSchemaRegistryClient) GetLatestSchemaMetadata ¶
func (this *CachedSchemaRegistryClient) GetLatestSchemaMetadata(subject string) (*SchemaMetadata, error)
func (*CachedSchemaRegistryClient) GetVersion ¶
type CompatibilityLevel ¶
type CompatibilityLevel string
const ( BackwardCompatibilityLevel CompatibilityLevel = "BACKWARD" ForwardCompatibilityLevel CompatibilityLevel = "FORWARD" FullCompatibilityLevel CompatibilityLevel = "FULL" NoneCompatibilityLevel CompatibilityLevel = "NONE" )
type ErrorMessage ¶
func (*ErrorMessage) Error ¶
func (this *ErrorMessage) Error() string
type GetSchemaResponse ¶
type GetSchemaResponse struct {
Schema string
}
type RegisterSchemaResponse ¶
type RegisterSchemaResponse struct {
Id int32
}
type RegistryAuth ¶
func NewRegistryAuth ¶
func NewRegistryAuth(user string, key string) *RegistryAuth
type SchemaMetadata ¶
Click to show internal directories.
Click to hide internal directories.