json_schema

package
v0.8.11 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: GPL-3.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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