Documentation ¶
Index ¶
- Constants
- func InitializeSchemaCacheBackend(conf config.Backend, b SchemaCacheBackend) error
- type ClickhouseRegistryTable
- type ClickhouseSchemaCacheBackend
- type FilesystemCacheBackend
- type GcsSchemaCacheBackend
- type HttpSchemaCacheBackend
- type MaterializeSchemaCacheBackend
- type MongoSchemaDocument
- type MongodbSchemaCacheBackend
- type MysqlSchemaCacheBackend
- type PostgresSchemaCacheBackend
- type RegistryTable
- type S3SchemaCacheBackend
- type SchemaCache
- type SchemaCacheBackend
Constants ¶
View Source
const ( GCS string = "gcs" S3 string = "s3" FS string = "fs" HTTP string = "http" HTTPS string = "https" IGLU string = "iglu" KSR string = "ksr" // Kafka schema registry )
View Source
const ( SCHEMA_CACHE_ROOT_ROUTE = "/schemas" SCHEMA_ROUTE_PARAM = "schema" )
Variables ¶
This section is empty.
Functions ¶
func InitializeSchemaCacheBackend ¶ added in v0.9.0
func InitializeSchemaCacheBackend(conf config.Backend, b SchemaCacheBackend) error
Types ¶
type ClickhouseRegistryTable ¶ added in v0.9.0
type ClickhouseRegistryTable struct { db.BasePKeylessModel Name string `json:"name" gorm:"index:idx_name"` Contents string `json:"contents"` }
type ClickhouseSchemaCacheBackend ¶ added in v0.9.0
type ClickhouseSchemaCacheBackend struct {
// contains filtered or unexported fields
}
func (*ClickhouseSchemaCacheBackend) Close ¶ added in v0.9.0
func (b *ClickhouseSchemaCacheBackend) Close()
func (*ClickhouseSchemaCacheBackend) GetRemote ¶ added in v0.9.0
func (b *ClickhouseSchemaCacheBackend) GetRemote(schema string) (contents []byte, err error)
func (*ClickhouseSchemaCacheBackend) Initialize ¶ added in v0.9.0
func (b *ClickhouseSchemaCacheBackend) Initialize(conf config.Backend) error
type FilesystemCacheBackend ¶
type FilesystemCacheBackend struct {
// contains filtered or unexported fields
}
func (*FilesystemCacheBackend) Close ¶
func (b *FilesystemCacheBackend) Close()
func (*FilesystemCacheBackend) GetRemote ¶
func (b *FilesystemCacheBackend) GetRemote(schema string) (contents []byte, err error)
func (*FilesystemCacheBackend) Initialize ¶
func (b *FilesystemCacheBackend) Initialize(conf config.Backend) error
type GcsSchemaCacheBackend ¶
type GcsSchemaCacheBackend struct {
// contains filtered or unexported fields
}
func (*GcsSchemaCacheBackend) Close ¶
func (b *GcsSchemaCacheBackend) Close()
func (*GcsSchemaCacheBackend) GetRemote ¶
func (b *GcsSchemaCacheBackend) GetRemote(schema string) (contents []byte, err error)
func (*GcsSchemaCacheBackend) Initialize ¶
func (b *GcsSchemaCacheBackend) Initialize(config config.Backend) error
type HttpSchemaCacheBackend ¶
type HttpSchemaCacheBackend struct {
// contains filtered or unexported fields
}
func (*HttpSchemaCacheBackend) Close ¶
func (b *HttpSchemaCacheBackend) Close()
func (*HttpSchemaCacheBackend) GetRemote ¶
func (b *HttpSchemaCacheBackend) GetRemote(schema string) (contents []byte, err error)
func (*HttpSchemaCacheBackend) Initialize ¶
func (b *HttpSchemaCacheBackend) Initialize(conf config.Backend) error
type MaterializeSchemaCacheBackend ¶ added in v0.9.0
type MaterializeSchemaCacheBackend struct {
// contains filtered or unexported fields
}
func (*MaterializeSchemaCacheBackend) Close ¶ added in v0.9.0
func (b *MaterializeSchemaCacheBackend) Close()
func (*MaterializeSchemaCacheBackend) GetRemote ¶ added in v0.9.0
func (b *MaterializeSchemaCacheBackend) GetRemote(schema string) (contents []byte, err error)
func (*MaterializeSchemaCacheBackend) Initialize ¶ added in v0.9.0
func (b *MaterializeSchemaCacheBackend) Initialize(conf config.Backend) error
type MongoSchemaDocument ¶ added in v0.9.0
type MongodbSchemaCacheBackend ¶ added in v0.9.0
type MongodbSchemaCacheBackend struct {
// contains filtered or unexported fields
}
func (*MongodbSchemaCacheBackend) Close ¶ added in v0.9.0
func (b *MongodbSchemaCacheBackend) Close()
func (*MongodbSchemaCacheBackend) GetRemote ¶ added in v0.9.0
func (b *MongodbSchemaCacheBackend) GetRemote(schema string) (contents []byte, err error)
func (*MongodbSchemaCacheBackend) Initialize ¶ added in v0.9.0
func (b *MongodbSchemaCacheBackend) Initialize(conf config.Backend) error
type MysqlSchemaCacheBackend ¶ added in v0.9.0
type MysqlSchemaCacheBackend struct {
// contains filtered or unexported fields
}
func (*MysqlSchemaCacheBackend) Close ¶ added in v0.9.0
func (b *MysqlSchemaCacheBackend) Close()
func (*MysqlSchemaCacheBackend) GetRemote ¶ added in v0.9.0
func (b *MysqlSchemaCacheBackend) GetRemote(schema string) (contents []byte, err error)
func (*MysqlSchemaCacheBackend) Initialize ¶ added in v0.9.0
func (b *MysqlSchemaCacheBackend) Initialize(conf config.Backend) error
type PostgresSchemaCacheBackend ¶ added in v0.9.0
type PostgresSchemaCacheBackend struct {
// contains filtered or unexported fields
}
func (*PostgresSchemaCacheBackend) Close ¶ added in v0.9.0
func (b *PostgresSchemaCacheBackend) Close()
func (*PostgresSchemaCacheBackend) GetRemote ¶ added in v0.9.0
func (b *PostgresSchemaCacheBackend) GetRemote(schema string) (contents []byte, err error)
func (*PostgresSchemaCacheBackend) Initialize ¶ added in v0.9.0
func (b *PostgresSchemaCacheBackend) Initialize(conf config.Backend) error
type RegistryTable ¶ added in v0.9.0
type RegistryTable struct { db.BasePKeylessModel Name string `json:"name" gorm:"index:idx_name"` Contents datatypes.JSON `json:"contents"` }
type S3SchemaCacheBackend ¶
type S3SchemaCacheBackend struct {
// contains filtered or unexported fields
}
func (*S3SchemaCacheBackend) Close ¶
func (b *S3SchemaCacheBackend) Close()
func (*S3SchemaCacheBackend) GetRemote ¶
func (b *S3SchemaCacheBackend) GetRemote(schema string) (contents []byte, err error)
func (*S3SchemaCacheBackend) Initialize ¶
func (b *S3SchemaCacheBackend) Initialize(conf config.Backend) error
type SchemaCache ¶
type SchemaCache struct { Cache *freecache.Cache Backend SchemaCacheBackend // contains filtered or unexported fields }
func (*SchemaCache) Initialize ¶
func (s *SchemaCache) Initialize(conf config.SchemaCache) error
type SchemaCacheBackend ¶
type SchemaCacheBackend interface { Initialize(config config.Backend) error GetRemote(schema string) (contents []byte, err error) Close() }
func BuildSchemaCacheBackend ¶
func BuildSchemaCacheBackend(conf config.Backend) (backend SchemaCacheBackend, err error)
Click to show internal directories.
Click to hide internal directories.