github.com/voedger/voedger@v0.0.0-20240520144910-273e84102129/pkg/apps/sys/clusterapp/consts.go (about)

     1  /*
     2   * Copyright (c) 2024-present unTill Software Development Group B.V.
     3   * @author Denis Gribanov
     4   */
     5  
     6  package clusterapp
     7  
     8  import (
     9  	"embed"
    10  
    11  	"github.com/voedger/voedger/pkg/appparts"
    12  	"github.com/voedger/voedger/pkg/istructs"
    13  	coreutils "github.com/voedger/voedger/pkg/utils"
    14  )
    15  
    16  //go:embed schema.vsql
    17  var schemaFS embed.FS
    18  
    19  const (
    20  	ClusterAppFQN           = "github.com/voedger/voedger/pkg/apps/sys/clusterapp"
    21  	ClusterAppNumPartitions = istructs.NumAppPartitions(1)
    22  	ClusterAppNumAppWS      = istructs.NumAppWorkspaces(1)
    23  )
    24  
    25  var (
    26  	ClusterAppWSID            = istructs.NewWSID(istructs.MainClusterID, istructs.FirstBaseAppWSID)    // 140737488420864 
    27  	ClusterAppPseudoWSID      = istructs.NewWSID(istructs.MainClusterID, istructs.FirstPseudoBaseWSID) // 140737488355328
    28  	ClusterAppWSIDPartitionID = coreutils.AppPartitionID(ClusterAppWSID, ClusterAppNumPartitions)      // 0
    29  	ClusterAppNumEngines      = [appparts.ProcessorKind_Count]int{int(ClusterAppNumPartitions), 1, int(ClusterAppNumPartitions)}
    30  )