Documentation ¶
Index ¶
- func Migrate(connURL string) error
- func NewHTTPFSMigrator(DBConnURL string) (*migrate.Migrate, error)
- type DB
- type NamespaceRepository
- func (r *NamespaceRepository) Create(ctx context.Context, ns namespace.Namespace) (namespace.Namespace, error)
- func (r *NamespaceRepository) Delete(ctx context.Context, id string) error
- func (r *NamespaceRepository) Get(ctx context.Context, id string) (namespace.Namespace, error)
- func (r *NamespaceRepository) List(ctx context.Context) ([]namespace.Namespace, error)
- func (r *NamespaceRepository) Update(ctx context.Context, ns namespace.Namespace) (namespace.Namespace, error)
- type SchemaRepository
- func (r *SchemaRepository) Create(ctx context.Context, namespace string, schemaName string, ...) (int32, error)
- func (r *SchemaRepository) Delete(ctx context.Context, ns string, sc string) error
- func (r *SchemaRepository) DeleteVersion(ctx context.Context, ns string, sc string, version int32) error
- func (r *SchemaRepository) Get(ctx context.Context, namespaceId, schemaName string, versionNumber int32) ([]byte, error)
- func (r *SchemaRepository) GetLatestVersion(ctx context.Context, namespaceId, schemaName string) (int32, error)
- func (r *SchemaRepository) GetMetadata(ctx context.Context, namespace, sc string) (*schema.Metadata, error)
- func (r *SchemaRepository) List(ctx context.Context, namespaceID string) ([]schema.Schema, error)
- func (r *SchemaRepository) ListVersions(ctx context.Context, ns string, sc string) ([]int32, error)
- func (r *SchemaRepository) UpdateMetadata(ctx context.Context, namespace, sc string, in *schema.Metadata) (*schema.Metadata, error)
- type SearchRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPFSMigrator ¶
NewHTTPFSMigrator reads the migrations from httpfs and returns the migrate.Migrate
Types ¶
type NamespaceRepository ¶
type NamespaceRepository struct {
// contains filtered or unexported fields
}
func NewNamespaceRepository ¶
func NewNamespaceRepository(dbc *DB) *NamespaceRepository
func (*NamespaceRepository) Delete ¶
func (r *NamespaceRepository) Delete(ctx context.Context, id string) error
type SchemaRepository ¶
type SchemaRepository struct {
// contains filtered or unexported fields
}
func NewSchemaRepository ¶
func NewSchemaRepository(dbc *DB) *SchemaRepository
func (*SchemaRepository) DeleteVersion ¶
func (*SchemaRepository) GetLatestVersion ¶
func (*SchemaRepository) GetMetadata ¶
func (*SchemaRepository) ListVersions ¶
type SearchRepository ¶
type SearchRepository struct {
// contains filtered or unexported fields
}
func NewSearchRepository ¶
func NewSearchRepository(dbc *DB) *SearchRepository
func (*SearchRepository) Search ¶
func (r *SearchRepository) Search(ctx context.Context, req *search.SearchRequest) ([]*search.SearchHits, error)
func (*SearchRepository) SearchLatest ¶
func (r *SearchRepository) SearchLatest(ctx context.Context, req *search.SearchRequest) ([]*search.SearchHits, error)
Click to show internal directories.
Click to hide internal directories.