Versions in this module Expand all Collapse all v0 v0.2.3 Jul 25, 2023 Changes in this version + const DefaultURL + const SchemaLatestVersion + func IsSchemaNotFound(err error) bool + func IsSubjectNotFound(err error) bool + func JSONAvroSchema(avroSchema string) (json.RawMessage, error) + type Client struct + func NewClient(baseURL string, options ...Option) (*Client, error) + func (c *Client) DeleteSubject(subject string) (versions []int, err error) + func (c *Client) GetConfig(subject string) (Config, error) + func (c *Client) GetLatestSchema(subject string) (Schema, error) + func (c *Client) GetSchemaByID(subjectID int) (string, error) + func (c *Client) GetSchemaBySubject(subject string, versionID int) (Schema, error) + func (c *Client) IsLatestSchemaCompatible(subject string, avroSchema string) (bool, error) + func (c *Client) IsRegistered(subject, schema string) (bool, Schema, error) + func (c *Client) IsSchemaCompatible(subject string, avroSchema string, versionID int) (bool, error) + func (c *Client) RegisterNewSchema(subject string, avroSchema string) (int, error) + func (c *Client) Subjects() (subjects []string, err error) + func (c *Client) Versions(subject string) (versions []int, err error) + type Config struct + CompatibilityLevel string + type Option func(*Client) + func UsingClient(httpClient *http.Client) Option + type ResourceError struct + ErrorCode int + Message string + Method string + URI string + func (err ResourceError) Error() string + type Schema struct + ID int + Schema string + Subject string + Version int