Documentation
¶
Index ¶
- type JsonSchemaEntity
- type JsonSchemaEntityLatestVersion
- type JsonSchemaEntityWithBasicInfo
- type JsonSchemaRepository
- type JsonSchemaRepositoryImpl
- func (j *JsonSchemaRepositoryImpl) Get(ctx context.Context, identifier string) (*JsonSchemaEntity, error)
- func (j *JsonSchemaRepositoryImpl) Insert(ctx context.Context, entity *JsonSchemaEntity) error
- func (j *JsonSchemaRepositoryImpl) List(ctx context.Context) ([]*JsonSchemaEntityWithBasicInfo, error)
- type JsonSchemaVersionEntity
- type JsonSchemaVersionRepository
- type JsonSchemaVersionRepositoryImpl
- func (j *JsonSchemaVersionRepositoryImpl) GetForJsonSchemaAndVersion(ctx context.Context, identifier string, versionMajor int64, versionMinor int64, ...) (*JsonSchemaVersionEntity, error)
- func (j *JsonSchemaVersionRepositoryImpl) GetForLatestMajorVersion(ctx context.Context, identifier string, versionMajor int64) (*JsonSchemaVersionEntity, error)
- func (j *JsonSchemaVersionRepositoryImpl) GetForLatestMinorVersion(ctx context.Context, identifier string, versionMajor int64, versionMinor int64) (*JsonSchemaVersionEntity, error)
- func (j *JsonSchemaVersionRepositoryImpl) GetLatestVersion(ctx context.Context, identifier string) (*JsonSchemaVersionEntity, error)
- func (j *JsonSchemaVersionRepositoryImpl) Insert(ctx context.Context, entity *JsonSchemaVersionEntity) error
- func (j *JsonSchemaVersionRepositoryImpl) ListForJsonSchema(ctx context.Context, identifier string) ([]*JsonSchemaVersionEntity, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonSchemaEntity ¶
type JsonSchemaEntityLatestVersion ¶ added in v0.1.0
type JsonSchemaEntityWithBasicInfo ¶ added in v0.1.0
type JsonSchemaEntityWithBasicInfo struct {
JsonSchemaEntity
LatestVersion JsonSchemaEntityLatestVersion
Description string
}
type JsonSchemaRepository ¶
type JsonSchemaRepository interface {
Insert(ctx context.Context, entity *JsonSchemaEntity) error
List(ctx context.Context) ([]*JsonSchemaEntityWithBasicInfo, error)
Get(ctx context.Context, identifier string) (*JsonSchemaEntity, error)
}
type JsonSchemaRepositoryImpl ¶
type JsonSchemaRepositoryImpl struct {
DB *database.DBConnection
}
func (*JsonSchemaRepositoryImpl) Get ¶ added in v0.1.0
func (j *JsonSchemaRepositoryImpl) Get(ctx context.Context, identifier string) (*JsonSchemaEntity, error)
func (*JsonSchemaRepositoryImpl) Insert ¶
func (j *JsonSchemaRepositoryImpl) Insert(ctx context.Context, entity *JsonSchemaEntity) error
func (*JsonSchemaRepositoryImpl) List ¶
func (j *JsonSchemaRepositoryImpl) List(ctx context.Context) ([]*JsonSchemaEntityWithBasicInfo, error)
type JsonSchemaVersionEntity ¶
type JsonSchemaVersionRepository ¶
type JsonSchemaVersionRepository interface {
Insert(ctx context.Context, entity *JsonSchemaVersionEntity) error
ListForJsonSchema(ctx context.Context, identifier string) ([]*JsonSchemaVersionEntity, error)
GetForJsonSchemaAndVersion(ctx context.Context, identifier string, versionMajor int64, versionMinor int64, versionPatch int64) (*JsonSchemaVersionEntity, error)
GetForLatestMajorVersion(ctx context.Context, identifier string, versionMajor int64) (*JsonSchemaVersionEntity, error)
GetForLatestMinorVersion(ctx context.Context, identifier string, versionMajor int64, versionMinor int64) (*JsonSchemaVersionEntity, error)
GetLatestVersion(ctx context.Context, identifier string) (*JsonSchemaVersionEntity, error)
}
type JsonSchemaVersionRepositoryImpl ¶
type JsonSchemaVersionRepositoryImpl struct {
DB *database.DBConnection
}
func (*JsonSchemaVersionRepositoryImpl) GetForJsonSchemaAndVersion ¶
func (j *JsonSchemaVersionRepositoryImpl) GetForJsonSchemaAndVersion(ctx context.Context, identifier string, versionMajor int64, versionMinor int64, versionPatch int64) (*JsonSchemaVersionEntity, error)
func (*JsonSchemaVersionRepositoryImpl) GetForLatestMajorVersion ¶
func (j *JsonSchemaVersionRepositoryImpl) GetForLatestMajorVersion(ctx context.Context, identifier string, versionMajor int64) (*JsonSchemaVersionEntity, error)
func (*JsonSchemaVersionRepositoryImpl) GetForLatestMinorVersion ¶
func (j *JsonSchemaVersionRepositoryImpl) GetForLatestMinorVersion(ctx context.Context, identifier string, versionMajor int64, versionMinor int64) (*JsonSchemaVersionEntity, error)
func (*JsonSchemaVersionRepositoryImpl) GetLatestVersion ¶
func (j *JsonSchemaVersionRepositoryImpl) GetLatestVersion(ctx context.Context, identifier string) (*JsonSchemaVersionEntity, error)
func (*JsonSchemaVersionRepositoryImpl) Insert ¶
func (j *JsonSchemaVersionRepositoryImpl) Insert(ctx context.Context, entity *JsonSchemaVersionEntity) error
func (*JsonSchemaVersionRepositoryImpl) ListForJsonSchema ¶
func (j *JsonSchemaVersionRepositoryImpl) ListForJsonSchema(ctx context.Context, identifier string) ([]*JsonSchemaVersionEntity, error)
Click to show internal directories.
Click to hide internal directories.