github.com/confluentinc/confluent-kafka-go@v1.9.2/schemaregistry/api.html (about)

     1  <!DOCTYPE html>
     2  <html>
     3   <head>
     4    <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
     5    <meta content="width=device-width, initial-scale=1" name="viewport"/>
     6    <meta content="#375EAB" name="theme-color"/>
     7    <title>
     8     schemaregistry - Go Documentation Server
     9    </title>
    10    <link href="https://go.dev/css/styles.css" rel="stylesheet" type="text/css"/>
    11    <script>
    12     window.initFuncs = [];
    13    </script>
    14    <script defer="" src="https://go.dev/js/jquery.js">
    15    </script>
    16    <script>
    17     var goVersion = "go1.14";
    18    </script>
    19    <script defer="" src="https://go.dev/js/godocs.js">
    20    </script>
    21   </head>
    22   <body>
    23    <div id="lowframe" style="position: fixed; bottom: 0; left: 0; height: 0; width: 100%; border-top: thin solid grey; background-color: white; overflow: auto;">
    24     ...
    25    </div>
    26    <!-- #lowframe -->
    27    <div class="wide" id="page">
    28     <div class="container">
    29      <h1>
    30       Package schemaregistry
    31       <span class="text-muted">
    32       </span>
    33      </h1>
    34      <div id="nav">
    35      </div>
    36      <!--
    37  	Copyright 2009 The Go Authors. All rights reserved.
    38  	Use of this source code is governed by a BSD-style
    39  	license that can be found in the LICENSE file.
    40  -->
    41      <!--
    42  	Note: Static (i.e., not template-generated) href and id
    43  	attributes start with "pkg-" to make it impossible for
    44  	them to conflict with generated attributes (some of which
    45  	correspond to Go identifiers).
    46  -->
    47      <script>
    48       document.ANALYSIS_DATA = null;
    49  	document.CALLGRAPH = null;
    50      </script>
    51      <div id="short-nav">
    52       <dl>
    53        <dd>
    54         <code>
    55          import "github.com/confluentinc/confluent-kafka-go/schemaregistry"
    56         </code>
    57        </dd>
    58       </dl>
    59       <dl>
    60        <dd>
    61         <a class="overviewLink" href="#pkg-overview">
    62          Overview
    63         </a>
    64        </dd>
    65        <dd>
    66         <a class="indexLink" href="#pkg-index">
    67          Index
    68         </a>
    69        </dd>
    70        <dd>
    71        </dd>
    72       </dl>
    73      </div>
    74      <!-- The package's Name is printed as title by the top-level template -->
    75      <div class="toggleVisible" id="pkg-overview">
    76       <div class="collapsed">
    77        <h2 class="toggleButton" title="Click to show Overview section">
    78         Overview ▹
    79        </h2>
    80       </div>
    81       <div class="expanded">
    82        <h2 class="toggleButton" title="Click to hide Overview section">
    83         Overview ▾
    84        </h2>
    85       </div>
    86      </div>
    87      <div class="toggleVisible" id="pkg-index">
    88       <div class="collapsed">
    89        <h2 class="toggleButton" title="Click to show Index section">
    90         Index ▹
    91        </h2>
    92       </div>
    93       <div class="expanded">
    94        <h2 class="toggleButton" title="Click to hide Index section">
    95         Index ▾
    96        </h2>
    97        <!-- Table of contents for API; must be named manual-nav to turn off auto nav. -->
    98        <div id="manual-nav">
    99         <dl>
   100          <dd>
   101           <a href="#pkg-constants">
   102            Constants
   103           </a>
   104          </dd>
   105          <dd>
   106           <a href="#Client">
   107            type Client
   108           </a>
   109          </dd>
   110          <dd>
   111           <a href="#NewClient">
   112            func NewClient(conf *Config) (Client, error)
   113           </a>
   114          </dd>
   115          <dd>
   116           <a href="#Compatibility">
   117            type Compatibility
   118           </a>
   119          </dd>
   120          <dd>
   121           <a href="#Compatibility.MarshalJSON">
   122            func (c Compatibility) MarshalJSON() ([]byte, error)
   123           </a>
   124          </dd>
   125          <dd>
   126           <a href="#Compatibility.ParseString">
   127            func (c *Compatibility) ParseString(val string) error
   128           </a>
   129          </dd>
   130          <dd>
   131           <a href="#Compatibility.String">
   132            func (c Compatibility) String() string
   133           </a>
   134          </dd>
   135          <dd>
   136           <a href="#Compatibility.UnmarshalJSON">
   137            func (c *Compatibility) UnmarshalJSON(b []byte) error
   138           </a>
   139          </dd>
   140          <dd>
   141           <a href="#Config">
   142            type Config
   143           </a>
   144          </dd>
   145          <dd>
   146           <a href="#NewConfig">
   147            func NewConfig(url string) *Config
   148           </a>
   149          </dd>
   150          <dd>
   151           <a href="#NewConfigWithAuthentication">
   152            func NewConfigWithAuthentication(url string, username string, password string) *Config
   153           </a>
   154          </dd>
   155          <dd>
   156           <a href="#Reference">
   157            type Reference
   158           </a>
   159          </dd>
   160          <dd>
   161           <a href="#RestError">
   162            type RestError
   163           </a>
   164          </dd>
   165          <dd>
   166           <a href="#RestError.Error">
   167            func (err *RestError) Error() string
   168           </a>
   169          </dd>
   170          <dd>
   171           <a href="#SchemaInfo">
   172            type SchemaInfo
   173           </a>
   174          </dd>
   175          <dd>
   176           <a href="#SchemaInfo.MarshalJSON">
   177            func (sd *SchemaInfo) MarshalJSON() ([]byte, error)
   178           </a>
   179          </dd>
   180          <dd>
   181           <a href="#SchemaInfo.UnmarshalJSON">
   182            func (sd *SchemaInfo) UnmarshalJSON(b []byte) error
   183           </a>
   184          </dd>
   185          <dd>
   186           <a href="#SchemaMetadata">
   187            type SchemaMetadata
   188           </a>
   189          </dd>
   190          <dd>
   191           <a href="#SchemaMetadata.MarshalJSON">
   192            func (sd *SchemaMetadata) MarshalJSON() ([]byte, error)
   193           </a>
   194          </dd>
   195          <dd>
   196           <a href="#SchemaMetadata.UnmarshalJSON">
   197            func (sd *SchemaMetadata) UnmarshalJSON(b []byte) error
   198           </a>
   199          </dd>
   200         </dl>
   201        </div>
   202        <!-- #manual-nav -->
   203        <h3>
   204         Package files
   205        </h3>
   206        <p>
   207         <span style="font-size:90%">
   208          <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/config.go">
   209           config.go
   210          </a>
   211          <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/mock_schemaregistry_client.go">
   212           mock_schemaregistry_client.go
   213          </a>
   214          <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/rest_service.go">
   215           rest_service.go
   216          </a>
   217          <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/schemaregistry_client.go">
   218           schemaregistry_client.go
   219          </a>
   220          <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/testhelpers.go">
   221           testhelpers.go
   222          </a>
   223         </span>
   224        </p>
   225       </div>
   226       <!-- .expanded -->
   227      </div>
   228      <!-- #pkg-index -->
   229      <h2 id="pkg-constants">
   230       Constants
   231      </h2>
   232      <pre>const (
   233  
   234      <span class="comment">// None is no compatibility</span>
   235      <span id="None">None</span>
   236      <span class="comment">// Backward compatibility</span>
   237      <span id="Backward">Backward</span>
   238      <span class="comment">// Forward compatibility</span>
   239      <span id="Forward">Forward</span>
   240      <span class="comment">// Full compatibility</span>
   241      <span id="Full">Full</span>
   242      <span class="comment">// BackwardTransitive compatibility</span>
   243      <span id="BackwardTransitive">BackwardTransitive</span>
   244      <span class="comment">// ForwardTransitive compatibility</span>
   245      <span id="ForwardTransitive">ForwardTransitive</span>
   246      <span class="comment">// FullTransitive compatibility</span>
   247      <span id="FullTransitive">FullTransitive</span>
   248  )</pre>
   249      <h2 id="Client">
   250       type
   251       <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/schemaregistry_client.go?s=6419:7569#L182">
   252        Client
   253       </a>
   254       <a class="permalink" href="#Client">
   255        ¶
   256       </a>
   257      </h2>
   258      <p>
   259       Client is an interface for clients interacting with the Confluent Schema Registry.
   260  The Schema Registry's REST interface is further explained in Confluent's Schema Registry API documentation
   261       <a href="https://github.com/confluentinc/schema-registry/blob/master/client/src/main/java/io/confluent/kafka/schemaregistry/client/SchemaRegistryClient.java">
   262        https://github.com/confluentinc/schema-registry/blob/master/client/src/main/java/io/confluent/kafka/schemaregistry/client/SchemaRegistryClient.java
   263       </a>
   264      </p>
   265      <pre>type Client interface {
   266      Register(subject <a href="https://pkg.go.dev/builtin/#string">string</a>, schema <a href="#SchemaInfo">SchemaInfo</a>, normalize <a href="https://pkg.go.dev/builtin/#bool">bool</a>) (id <a href="https://pkg.go.dev/builtin/#int">int</a>, err <a href="https://pkg.go.dev/builtin/#error">error</a>)
   267      GetBySubjectAndID(subject <a href="https://pkg.go.dev/builtin/#string">string</a>, id <a href="https://pkg.go.dev/builtin/#int">int</a>) (schema <a href="#SchemaInfo">SchemaInfo</a>, err <a href="https://pkg.go.dev/builtin/#error">error</a>)
   268      GetID(subject <a href="https://pkg.go.dev/builtin/#string">string</a>, schema <a href="#SchemaInfo">SchemaInfo</a>, normalize <a href="https://pkg.go.dev/builtin/#bool">bool</a>) (id <a href="https://pkg.go.dev/builtin/#int">int</a>, err <a href="https://pkg.go.dev/builtin/#error">error</a>)
   269      GetLatestSchemaMetadata(subject <a href="https://pkg.go.dev/builtin/#string">string</a>) (<a href="#SchemaMetadata">SchemaMetadata</a>, <a href="https://pkg.go.dev/builtin/#error">error</a>)
   270      GetSchemaMetadata(subject <a href="https://pkg.go.dev/builtin/#string">string</a>, version <a href="https://pkg.go.dev/builtin/#int">int</a>) (<a href="#SchemaMetadata">SchemaMetadata</a>, <a href="https://pkg.go.dev/builtin/#error">error</a>)
   271      GetAllVersions(subject <a href="https://pkg.go.dev/builtin/#string">string</a>) ([]<a href="https://pkg.go.dev/builtin/#int">int</a>, <a href="https://pkg.go.dev/builtin/#error">error</a>)
   272      GetVersion(subject <a href="https://pkg.go.dev/builtin/#string">string</a>, schema <a href="#SchemaInfo">SchemaInfo</a>, normalize <a href="https://pkg.go.dev/builtin/#bool">bool</a>) (version <a href="https://pkg.go.dev/builtin/#int">int</a>, err <a href="https://pkg.go.dev/builtin/#error">error</a>)
   273      GetAllSubjects() ([]<a href="https://pkg.go.dev/builtin/#string">string</a>, <a href="https://pkg.go.dev/builtin/#error">error</a>)
   274      DeleteSubject(subject <a href="https://pkg.go.dev/builtin/#string">string</a>, permanent <a href="https://pkg.go.dev/builtin/#bool">bool</a>) ([]<a href="https://pkg.go.dev/builtin/#int">int</a>, <a href="https://pkg.go.dev/builtin/#error">error</a>)
   275      DeleteSubjectVersion(subject <a href="https://pkg.go.dev/builtin/#string">string</a>, version <a href="https://pkg.go.dev/builtin/#int">int</a>, permanent <a href="https://pkg.go.dev/builtin/#bool">bool</a>) (deletes <a href="https://pkg.go.dev/builtin/#int">int</a>, err <a href="https://pkg.go.dev/builtin/#error">error</a>)
   276      GetCompatibility(subject <a href="https://pkg.go.dev/builtin/#string">string</a>) (compatibility <a href="#Compatibility">Compatibility</a>, err <a href="https://pkg.go.dev/builtin/#error">error</a>)
   277      UpdateCompatibility(subject <a href="https://pkg.go.dev/builtin/#string">string</a>, update <a href="#Compatibility">Compatibility</a>) (compatibility <a href="#Compatibility">Compatibility</a>, err <a href="https://pkg.go.dev/builtin/#error">error</a>)
   278      TestCompatibility(subject <a href="https://pkg.go.dev/builtin/#string">string</a>, version <a href="https://pkg.go.dev/builtin/#int">int</a>, schema <a href="#SchemaInfo">SchemaInfo</a>) (compatible <a href="https://pkg.go.dev/builtin/#bool">bool</a>, err <a href="https://pkg.go.dev/builtin/#error">error</a>)
   279      GetDefaultCompatibility() (compatibility <a href="#Compatibility">Compatibility</a>, err <a href="https://pkg.go.dev/builtin/#error">error</a>)
   280      UpdateDefaultCompatibility(update <a href="#Compatibility">Compatibility</a>) (compatibility <a href="#Compatibility">Compatibility</a>, err <a href="https://pkg.go.dev/builtin/#error">error</a>)
   281  }</pre>
   282      <h3 id="NewClient">
   283       func
   284       <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/schemaregistry_client.go?s=7616:7660#L201">
   285        NewClient
   286       </a>
   287       <a class="permalink" href="#NewClient">
   288        ¶
   289       </a>
   290      </h3>
   291      <pre>func NewClient(conf *<a href="#Config">Config</a>) (<a href="#Client">Client</a>, <a href="https://pkg.go.dev/builtin/#error">error</a>)</pre>
   292      <p>
   293       NewClient returns a Client implementation
   294      </p>
   295      <h2 id="Compatibility">
   296       type
   297       <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/schemaregistry_client.go?s=16560:16582#L511">
   298        Compatibility
   299       </a>
   300       <a class="permalink" href="#Compatibility">
   301        ¶
   302       </a>
   303      </h2>
   304      <p>
   305       Compatibility options
   306      </p>
   307      <pre>type Compatibility <a href="https://pkg.go.dev/builtin/#int">int</a></pre>
   308      <h3 id="Compatibility.MarshalJSON">
   309       func (Compatibility)
   310       <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/schemaregistry_client.go?s=17337:17389#L549">
   311        MarshalJSON
   312       </a>
   313       <a class="permalink" href="#Compatibility.MarshalJSON">
   314        ¶
   315       </a>
   316      </h3>
   317      <pre>func (c <a href="#Compatibility">Compatibility</a>) MarshalJSON() ([]<a href="https://pkg.go.dev/builtin/#byte">byte</a>, <a href="https://pkg.go.dev/builtin/#error">error</a>)</pre>
   318      <p>
   319       MarshalJSON implements json.Marshaler
   320      </p>
   321      <h3 id="Compatibility.ParseString">
   322       func (*Compatibility)
   323       <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/schemaregistry_client.go?s=17810:17863#L568">
   324        ParseString
   325       </a>
   326       <a class="permalink" href="#Compatibility.ParseString">
   327        ¶
   328       </a>
   329      </h3>
   330      <pre>func (c *<a href="#Compatibility">Compatibility</a>) ParseString(val <a href="https://pkg.go.dev/builtin/#string">string</a>) <a href="https://pkg.go.dev/builtin/#error">error</a></pre>
   331      <p>
   332       ParseString returns a Compatibility for the given string
   333      </p>
   334      <h3 id="Compatibility.String">
   335       func (Compatibility)
   336       <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/schemaregistry_client.go?s=17677:17715#L563">
   337        String
   338       </a>
   339       <a class="permalink" href="#Compatibility.String">
   340        ¶
   341       </a>
   342      </h3>
   343      <pre>func (c <a href="#Compatibility">Compatibility</a>) String() <a href="https://pkg.go.dev/builtin/#string">string</a></pre>
   344      <h3 id="Compatibility.UnmarshalJSON">
   345       func (*Compatibility)
   346       <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/schemaregistry_client.go?s=17473:17526#L554">
   347        UnmarshalJSON
   348       </a>
   349       <a class="permalink" href="#Compatibility.UnmarshalJSON">
   350        ¶
   351       </a>
   352      </h3>
   353      <pre>func (c *<a href="#Compatibility">Compatibility</a>) UnmarshalJSON(b []<a href="https://pkg.go.dev/builtin/#byte">byte</a>) <a href="https://pkg.go.dev/builtin/#error">error</a></pre>
   354      <p>
   355       UnmarshalJSON implements json.Unmarshaler
   356      </p>
   357      <h2 id="Config">
   358       type
   359       <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/config.go?s=722:2038#L12">
   360        Config
   361       </a>
   362       <a class="permalink" href="#Config">
   363        ¶
   364       </a>
   365      </h2>
   366      <p>
   367       Config is used to pass multiple configuration options to the Schema Registry client.
   368      </p>
   369      <pre>type Config struct {
   370  <span id="Config.SchemaRegistryURL"></span>    <span class="comment">// SchemaRegistryURL determines the URL of Schema Registry.</span>
   371      SchemaRegistryURL <a href="https://pkg.go.dev/builtin/#string">string</a>
   372  
   373  <span id="Config.BasicAuthUserInfo"></span>    <span class="comment">// BasicAuthUserInfo specifies the user info in the form of {username}:{password}.</span>
   374      BasicAuthUserInfo <a href="https://pkg.go.dev/builtin/#string">string</a>
   375  <span id="Config.BasicAuthCredentialsSource"></span>    <span class="comment">// BasicAuthCredentialsSource specifies how to determine the credentials, one of URL, USER_INFO, and SASL_INHERIT.</span>
   376      BasicAuthCredentialsSource <a href="https://pkg.go.dev/builtin/#string">string</a>
   377  
   378  <span id="Config.SaslMechanism"></span>    <span class="comment">// SaslMechanism specifies the SASL mechanism used for client connections, which defaults to GSSAPI.</span>
   379      SaslMechanism <a href="https://pkg.go.dev/builtin/#string">string</a>
   380  <span id="Config.SaslUsername"></span>    <span class="comment">// SaslUsername specifies the username for SASL.</span>
   381      SaslUsername <a href="https://pkg.go.dev/builtin/#string">string</a>
   382      <span class="comment">// SaslUsername specifies the password for SASL.</span>
   383  <span id="Config.SaslPassword"></span>    SaslPassword <a href="https://pkg.go.dev/builtin/#string">string</a>
   384  
   385  <span id="Config.SslCertificateLocation"></span>    <span class="comment">// SslCertificateLocation specifies the location of SSL certificates.</span>
   386      SslCertificateLocation <a href="https://pkg.go.dev/builtin/#string">string</a>
   387  <span id="Config.SslKeyLocation"></span>    <span class="comment">// SslKeyLocation specifies the location of SSL keys.</span>
   388      SslKeyLocation <a href="https://pkg.go.dev/builtin/#string">string</a>
   389  <span id="Config.SslCaLocation"></span>    <span class="comment">// SslCaLocation specifies the location of SSL certificate authorities.</span>
   390      SslCaLocation <a href="https://pkg.go.dev/builtin/#string">string</a>
   391  <span id="Config.SslDisableEndpointVerification"></span>    <span class="comment">// SslDisableEndpointVerification determines whether to disable endpoint verification.</span>
   392      SslDisableEndpointVerification <a href="https://pkg.go.dev/builtin/#bool">bool</a>
   393  
   394  <span id="Config.ConnectionTimeoutMs"></span>    <span class="comment">// ConnectionTimeoutMs determines the connection timeout in milliseconds.</span>
   395      ConnectionTimeoutMs <a href="https://pkg.go.dev/builtin/#int">int</a>
   396  <span id="Config.RequestTimeoutMs"></span>    <span class="comment">// RequestTimeoutMs determines the request timeout in milliseconds.</span>
   397      RequestTimeoutMs <a href="https://pkg.go.dev/builtin/#int">int</a>
   398  <span id="Config.CacheCapacity"></span>    <span class="comment">// CacheCapacity positive integer or zero for unbounded capacity</span>
   399      CacheCapacity <a href="https://pkg.go.dev/builtin/#int">int</a>
   400  }
   401  </pre>
   402      <h3 id="NewConfig">
   403       func
   404       <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/config.go?s=2110:2144#L46">
   405        NewConfig
   406       </a>
   407       <a class="permalink" href="#NewConfig">
   408        ¶
   409       </a>
   410      </h3>
   411      <pre>func NewConfig(url <a href="https://pkg.go.dev/builtin/#string">string</a>) *<a href="#Config">Config</a></pre>
   412      <p>
   413       NewConfig returns a new configuration instance with sane defaults.
   414      </p>
   415      <h3 id="NewConfigWithAuthentication">
   416       func
   417       <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/config.go?s=2710:2796#L71">
   418        NewConfigWithAuthentication
   419       </a>
   420       <a class="permalink" href="#NewConfigWithAuthentication">
   421        ¶
   422       </a>
   423      </h3>
   424      <pre>func NewConfigWithAuthentication(url <a href="https://pkg.go.dev/builtin/#string">string</a>, username <a href="https://pkg.go.dev/builtin/#string">string</a>, password <a href="https://pkg.go.dev/builtin/#string">string</a>) *<a href="#Config">Config</a></pre>
   425      <p>
   426       NewConfigWithAuthentication returns a new configuration instance using basic authentication.
   427  For Confluent Cloud, use the API key for the username and the API secret for the password.
   428      </p>
   429      <h2 id="Reference">
   430       type
   431       <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/schemaregistry_client.go?s=3021:3142#L60">
   432        Reference
   433       </a>
   434       <a class="permalink" href="#Reference">
   435        ¶
   436       </a>
   437      </h2>
   438      <p>
   439       Reference represents a schema reference
   440      </p>
   441      <pre>type Reference struct {
   442  <span id="Reference.Name"></span>    Name    <a href="https://pkg.go.dev/builtin/#string">string</a> `json:"name"`
   443  <span id="Reference.Subject"></span>    Subject <a href="https://pkg.go.dev/builtin/#string">string</a> `json:"subject"`
   444  <span id="Reference.Version"></span>    Version <a href="https://pkg.go.dev/builtin/#int">int</a>    `json:"version"`
   445  }
   446  </pre>
   447      <h2 id="RestError">
   448       type
   449       <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/rest_service.go?s=2539:2633#L81">
   450        RestError
   451       </a>
   452       <a class="permalink" href="#RestError">
   453        ¶
   454       </a>
   455      </h2>
   456      <p>
   457       RestError represents a Schema Registry HTTP Error response
   458      </p>
   459      <pre>type RestError struct {
   460  <span id="RestError.Code"></span>    Code    <a href="https://pkg.go.dev/builtin/#int">int</a>    `json:"error_code"`
   461  <span id="RestError.Message"></span>    Message <a href="https://pkg.go.dev/builtin/#string">string</a> `json:"message"`
   462  }
   463  </pre>
   464      <h3 id="RestError.Error">
   465       func (*RestError)
   466       <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/rest_service.go?s=2682:2718#L87">
   467        Error
   468       </a>
   469       <a class="permalink" href="#RestError.Error">
   470        ¶
   471       </a>
   472      </h3>
   473      <pre>func (err *<a href="#RestError">RestError</a>) Error() <a href="https://pkg.go.dev/builtin/#string">string</a></pre>
   474      <p>
   475       Error implements the errors.Error interface
   476      </p>
   477      <h2 id="SchemaInfo">
   478       type
   479       <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/schemaregistry_client.go?s=3194:3378#L67">
   480        SchemaInfo
   481       </a>
   482       <a class="permalink" href="#SchemaInfo">
   483        ¶
   484       </a>
   485      </h2>
   486      <p>
   487       SchemaInfo represents basic schema information
   488      </p>
   489      <pre>type SchemaInfo struct {
   490  <span id="SchemaInfo.Schema"></span>    Schema     <a href="https://pkg.go.dev/builtin/#string">string</a>      `json:"schema,omitempty"`
   491  <span id="SchemaInfo.SchemaType"></span>    SchemaType <a href="https://pkg.go.dev/builtin/#string">string</a>      `json:"schemaType,omitempty"`
   492  <span id="SchemaInfo.References"></span>    References []<a href="#Reference">Reference</a> `json:"references,omitempty"`
   493  }
   494  </pre>
   495      <h3 id="SchemaInfo.MarshalJSON">
   496       func (*SchemaInfo)
   497       <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/schemaregistry_client.go?s=3435:3486#L74">
   498        MarshalJSON
   499       </a>
   500       <a class="permalink" href="#SchemaInfo.MarshalJSON">
   501        ¶
   502       </a>
   503      </h3>
   504      <pre>func (sd *<a href="#SchemaInfo">SchemaInfo</a>) MarshalJSON() ([]<a href="https://pkg.go.dev/builtin/#byte">byte</a>, <a href="https://pkg.go.dev/builtin/#error">error</a>)</pre>
   505      <p>
   506       MarshalJSON implements the json.Marshaler interface
   507      </p>
   508      <h3 id="SchemaInfo.UnmarshalJSON">
   509       func (*SchemaInfo)
   510       <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/schemaregistry_client.go?s=3799:3850#L87">
   511        UnmarshalJSON
   512       </a>
   513       <a class="permalink" href="#SchemaInfo.UnmarshalJSON">
   514        ¶
   515       </a>
   516      </h3>
   517      <pre>func (sd *<a href="#SchemaInfo">SchemaInfo</a>) UnmarshalJSON(b []<a href="https://pkg.go.dev/builtin/#byte">byte</a>) <a href="https://pkg.go.dev/builtin/#error">error</a></pre>
   518      <p>
   519       UnmarshalJSON implements the json.Unmarshaller interface
   520      </p>
   521      <h2 id="SchemaMetadata">
   522       type
   523       <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/schemaregistry_client.go?s=4232:4398#L105">
   524        SchemaMetadata
   525       </a>
   526       <a class="permalink" href="#SchemaMetadata">
   527        ¶
   528       </a>
   529      </h2>
   530      <p>
   531       SchemaMetadata represents schema metadata
   532      </p>
   533      <pre>type SchemaMetadata struct {
   534      <a href="#SchemaInfo">SchemaInfo</a>
   535  <span id="SchemaMetadata.ID"></span>    ID      <a href="https://pkg.go.dev/builtin/#int">int</a>    `json:"id,omitempty"`
   536  <span id="SchemaMetadata.Subject"></span>    Subject <a href="https://pkg.go.dev/builtin/#string">string</a> `json:"subject,omitempty"`
   537  <span id="SchemaMetadata.Version"></span>    Version <a href="https://pkg.go.dev/builtin/#int">int</a>    `json:"version,omitempty"`
   538  }
   539  </pre>
   540      <h3 id="SchemaMetadata.MarshalJSON">
   541       func (*SchemaMetadata)
   542       <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/schemaregistry_client.go?s=4455:4510#L113">
   543        MarshalJSON
   544       </a>
   545       <a class="permalink" href="#SchemaMetadata.MarshalJSON">
   546        ¶
   547       </a>
   548      </h3>
   549      <pre>func (sd *<a href="#SchemaMetadata">SchemaMetadata</a>) MarshalJSON() ([]<a href="https://pkg.go.dev/builtin/#byte">byte</a>, <a href="https://pkg.go.dev/builtin/#error">error</a>)</pre>
   550      <p>
   551       MarshalJSON implements the json.Marshaler interface
   552      </p>
   553      <h3 id="SchemaMetadata.UnmarshalJSON">
   554       func (*SchemaMetadata)
   555       <a href="https://github.com/confluentinc/confluent-kafka-go/blob/v1.9.2/schemaregistry/schemaregistry_client.go?s=5011:5066#L132">
   556        UnmarshalJSON
   557       </a>
   558       <a class="permalink" href="#SchemaMetadata.UnmarshalJSON">
   559        ¶
   560       </a>
   561      </h3>
   562      <pre>func (sd *<a href="#SchemaMetadata">SchemaMetadata</a>) UnmarshalJSON(b []<a href="https://pkg.go.dev/builtin/#byte">byte</a>) <a href="https://pkg.go.dev/builtin/#error">error</a></pre>
   563      <p>
   564       UnmarshalJSON implements the json.Unmarshaller interface
   565      </p>
   566      <div id="footer">
   567       Build version go1.14.
   568       <br/>
   569       Except as
   570       <a href="https://developers.google.com/site-policies#restrictions">
   571        noted
   572       </a>
   573       ,
   574  the content of this page is licensed under the
   575  Creative Commons Attribution 3.0 License,
   576  and code is licensed under a
   577       <a href="https://go.dev/LICENSE">
   578        BSD license
   579       </a>
   580       .
   581       <br/>
   582       <a href="https://golang.org/doc/tos.html">
   583        Terms of Service
   584       </a>
   585       |
   586       <a href="https://www.google.com/intl/en/policies/privacy/">
   587        Privacy Policy
   588       </a>
   589      </div>
   590     </div>
   591     <!-- .container -->
   592    </div>
   593    <!-- #page -->
   594   </body>
   595  </html>
   596