json_schema

package
v0.7.80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonSchemaEntity

type JsonSchemaEntity struct {
	Id         *int64
	Identifier string
}

type JsonSchemaEntityLatestVersion added in v0.1.0

type JsonSchemaEntityLatestVersion struct {
	Major int
	Minor int
	Patch int
}

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 (*JsonSchemaRepositoryImpl) Insert

func (*JsonSchemaRepositoryImpl) List

type JsonSchemaVersionEntity

type JsonSchemaVersionEntity struct {
	Id           *int64
	Description  *string
	VersionMajor int64
	VersionMinor int64
	VersionPatch int64
	Content      string
	JsonSchemaId int64
}

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 (*JsonSchemaVersionRepositoryImpl) ListForJsonSchema

func (j *JsonSchemaVersionRepositoryImpl) ListForJsonSchema(ctx context.Context, identifier string) ([]*JsonSchemaVersionEntity, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL