metadata

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	MetaTableName = "go_metadata_db_schema"
	CountMetaSQL  = "SELECT COUNT(*) as num FROM go_metadata_db_schema;"

	CreateMetaTable = `` /* 637-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service added in v0.0.6

type Service struct {
	Log golog.MyLogger
	Db  database.DB
}

func (*Service) CreateMetadataTableOrFail added in v0.3.0

func (s *Service) CreateMetadataTableOrFail()

CreateMetadataTableOrFail create the metadata table if it is not already present in the db

func (*Service) GetServiceVersionOrFail added in v0.3.0

func (s *Service) GetServiceVersionOrFail(serviceName string) (found bool, version string)

GetServiceVersionOrFail allows to retrieve the version of the microservice registered (if any) in the metadata table of the db

func (*Service) SetServiceVersionOrFail added in v0.3.0

func (s *Service) SetServiceVersionOrFail(serviceName, version string)

SetServiceVersionOrFail allows to insert/update the version of the microservice registered (if any) in the metadata table of the db

Jump to

Keyboard shortcuts

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