github.com/voedger/voedger@v0.0.0-20240520144910-273e84102129/pkg/istructsmem/internal/vers/interface.go (about)

     1  /*
     2   * Copyright (c) 2021-present Sigma-Soft, Ltd.
     3   * @author: Nikolay Nikitin
     4   */
     5  
     6  package vers
     7  
     8  import "github.com/voedger/voedger/pkg/istorage"
     9  
    10  type (
    11  	// Version key
    12  	VersionKey uint16
    13  
    14  	// Version values
    15  	VersionValue uint16
    16  )
    17  
    18  // Versions of system views
    19  //
    20  //	Use Get() to read a version of system view.
    21  //	Use Put() to write a version of system view.
    22  //	Use Prepare() to load Versions from storage.
    23  type Versions struct {
    24  	storage istorage.IAppStorage
    25  	vers    map[VersionKey]VersionValue
    26  }