Documentation ¶
Index ¶
Constants ¶
View Source
const ( SCHEMAS_ROUTE = "/s/" CACHE_PURGE_ROUTE = "/c/purge" SCHEMA_PARAM = "schema" )
Variables ¶
This section is empty.
Functions ¶
func GetSchemaHandler ¶ added in v0.12.1
func GetSchemaHandler(r *Registry) gin.HandlerFunc
func InitializeSchemaCacheBackend ¶
func InitializeSchemaCacheBackend(conf config.Backend, b SchemaCacheBackend) error
func PurgeCacheHandler ¶ added in v0.12.1
func PurgeCacheHandler(r *Registry) gin.HandlerFunc
Types ¶
type Registry ¶
type Registry struct { Cache *freecache.Cache Backend SchemaCacheBackend // contains filtered or unexported fields }
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.