version

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package version provides functionality to get the current version of the API and its components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	APIVersion         string
	DBMigrationVersion string
	DBMigrationDirty   bool
}

Info is a struct that represents version information of the API and its components

type Service

type Service interface {
	GetCurrentVersion(ctx context.Context) (*Info, error)
}

Service is an interface for the version service

func NewService

func NewService(dbClient *db.Client, apiVersion string) Service

NewService creates a new version service

Jump to

Keyboard shortcuts

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