* Copyright (c) 2024 Huawei Technologies Co., Ltd.
* openFuyao is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
package apis
type L1StoredEvent struct {
ModelContext ModelContext
ServerIP string
BlockHashes []BlockHash
ParentBlockHash *BlockHash
TokenIDs []int32
BlockSize int64
Medium string
DPRank int64
GroupIndex *int64
EventTimestampMs int64
}
type L1RemovedEvent struct {
ModelContext ModelContext
ServerIP string
BlockHashes []BlockHash
Medium string
GroupIndex *int64
EventTimestampMs int64
}
type L3ReplicaRecord struct {
ModelContext ModelContext
ServerIP string
BlockKey BlockHash
RawMooncakeKey string
ReplicaType string
TransportEndpoint TransportEndpoint
}
type L1ServerState struct {
MediumSet map[string]struct{}
DPRankSet map[int64]struct{}
GroupIndexSet map[int64]struct{}
}
type L3ServerState struct {
ReplicaTypeSet map[string]struct{}
}
type L1KeyEntry struct {
ServerStates map[string]*L1ServerState
}
type L3KeyEntry struct {
ServerStates map[TransportEndpoint]*L3ServerState
}