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 NotificationEventRepository
- func (r *NotificationEventRepository) Create(ctx context.Context, event changedetector.NotificationEvent) (changedetector.NotificationEvent, error)
- func (r *NotificationEventRepository) GetByNameSpaceSchemaVersionAndSuccess(ctx context.Context, namespace string, schemaID int32, versionID string, ...) (changedetector.NotificationEvent, error)
- func (r *NotificationEventRepository) Update(ctx context.Context, id string, success bool) (changedetector.NotificationEvent, error)
- type SchemaRepository
- func (r *SchemaRepository) Create(ctx context.Context, request *schema.UpdateSchemaRequest, versionID 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) GetSchemaID(ctx context.Context, ns string, sc string) (int32, error)
- func (r *SchemaRepository) GetVersionCommitSHA(ctx context.Context, schemaID int32, version int32) (string, 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 NotificationEventRepository ¶ added in v0.8.0
type NotificationEventRepository struct {
// contains filtered or unexported fields
}
func NewNotificationEventRepository ¶ added in v0.8.0
func NewNotificationEventRepository(dbc *DB) *NotificationEventRepository
func (*NotificationEventRepository) Create ¶ added in v0.8.0
func (r *NotificationEventRepository) Create(ctx context.Context, event changedetector.NotificationEvent) (changedetector.NotificationEvent, error)
func (*NotificationEventRepository) GetByNameSpaceSchemaVersionAndSuccess ¶ added in v0.8.0
func (r *NotificationEventRepository) GetByNameSpaceSchemaVersionAndSuccess(ctx context.Context, namespace string, schemaID int32, versionID string, success bool) (changedetector.NotificationEvent, error)
func (*NotificationEventRepository) Update ¶ added in v0.8.0
func (r *NotificationEventRepository) Update(ctx context.Context, id string, success bool) (changedetector.NotificationEvent, error)
type SchemaRepository ¶
type SchemaRepository struct {
// contains filtered or unexported fields
}
func NewSchemaRepository ¶
func NewSchemaRepository(dbc *DB) *SchemaRepository
func (*SchemaRepository) Create ¶
func (r *SchemaRepository) Create(ctx context.Context, request *schema.UpdateSchemaRequest, versionID string, commitSHA string) (int32, error)
func (*SchemaRepository) DeleteVersion ¶
func (*SchemaRepository) GetLatestVersion ¶
func (*SchemaRepository) GetMetadata ¶
func (*SchemaRepository) GetSchemaID ¶ added in v0.8.0
func (*SchemaRepository) GetVersionCommitSHA ¶ added in v0.8.6
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.