Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SchemaRegistryImpl ¶
SchemaRegistryImpl ...
func (SchemaRegistryImpl) PublishSchema ¶
func (s SchemaRegistryImpl) PublishSchema(ctx context.Context, service dto.Service, dir, extension string) (*dto.SchemaStatus, error)
PublishSchema pushes the schema to schema registry
func (SchemaRegistryImpl) ValidateSchema ¶
func (s SchemaRegistryImpl) ValidateSchema(ctx context.Context, service dto.Service, dir, extension string) (*dto.SchemaStatus, error)
ValidateSchema is validates a services schema against the graph in schema registry
type SchemaRegistryUsecase ¶
type SchemaRegistryUsecase interface {
PublishSchema(ctx context.Context, service dto.Service, dir, extension string) (*dto.SchemaStatus, error)
ValidateSchema(ctx context.Context, service dto.Service, dir, extension string) (*dto.SchemaStatus, error)
}
SchemaRegistryUsecase defines methods for the schema registry
func NewSchemaRegistryImpl ¶
func NewSchemaRegistryImpl() (SchemaRegistryUsecase, error)
NewSchemaRegistryImpl new Schema registry usecase implementation
type UsecaseImpl ¶
type UsecaseImpl struct {
// contains filtered or unexported fields
}
UsecaseImpl is the implementation of the usecase interface
func (UsecaseImpl) PublishSchema ¶
func (u UsecaseImpl) PublishSchema(ctx context.Context, service dto.Service, dir, extension string) (*dto.SchemaStatus, error)
PublishSchema pushes the schema to schema registry
func (UsecaseImpl) ValidateSchema ¶
func (u UsecaseImpl) ValidateSchema(ctx context.Context, service dto.Service, dir, extension string) (*dto.SchemaStatus, error)
ValidateSchema is validates a services schema against the graph in schema registry
type Usecases ¶
type Usecases interface {
SchemaRegistryUsecase
}
Usecases is a collection of all usecases
func NewUsecaseImpl ¶
NewUsecaseImpl initializes a new implementation of usecases interface
Click to show internal directories.
Click to hide internal directories.