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

     1  /*
     2   * Copyright (c) 2021-present Sigma-Soft, Ltd.
     3   * @author: Nikolay Nikitin
     4   */
     5  
     6  package containers
     7  
     8  // Identifier for Container name
     9  type ContainerID uint16
    10  
    11  // Container IDs system view
    12  //
    13  //	Use ID() to obtain container ID by its name.
    14  //	Use Container() to obtain container name by its ID.
    15  //	Use Prepare() to load container IDs from storage.
    16  type Containers struct {
    17  	containers map[string]ContainerID
    18  	ids        map[ContainerID]string
    19  	lastID     ContainerID
    20  	changes    uint
    21  }