Skip to content

Commit

Permalink
Fix compiler errors in API
Browse files Browse the repository at this point in the history
  • Loading branch information
kuujo committed Jul 20, 2022
1 parent 6e84204 commit 11e628c
Show file tree
Hide file tree
Showing 5 changed files with 383 additions and 99 deletions.
76 changes: 54 additions & 22 deletions api/atomix/gossip/v1/config.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/atomix/gossip/v1/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ message ClusterConfig {
}

message ReplicaConfig {
uint64 replica_id = 1 [
string replica_id = 1 [
(gogoproto.customname) = "ReplicaID",
(gogoproto.casttype) = "ReplicaID"
];
Expand All @@ -49,7 +49,7 @@ message PeerGroupConfig {
}

message PeerConfig {
uint64 peer_id = 1 [
string peer_id = 1 [
(gogoproto.customname) = "PeerID",
(gogoproto.casttype) = "PeerID"
];
Expand Down
23 changes: 23 additions & 0 deletions api/atomix/gossip/v1/protocol.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// SPDX-FileCopyrightText: 2022-present Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0

package v1

import "time"

type PartitionID uint64

type ReplicaID string

type MemberID string

type PeerID MemberID

type PeerGroupID uint64

type LogicalTime uint64

type Epoch uint64

type PhysicalTime = time.Time
Loading

0 comments on commit 11e628c

Please sign in to comment.