-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from TomPallister/feature/refactor
Feature/refactor
- Loading branch information
Showing
56 changed files
with
490 additions
and
219 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using Rafty.Messages; | ||
|
||
namespace Rafty.Commands | ||
{ | ||
public abstract class Command : ICommand, IMessage | ||
{ | ||
protected Command() | ||
{ | ||
MessageId = Guid.NewGuid(); | ||
} | ||
|
||
public Guid MessageId { get; } | ||
} | ||
|
||
public interface ICommand | ||
{ | ||
|
||
} | ||
} |
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/Rafty/IReportable.cs → src/Rafty/Infrastructure/IReportable.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Rafty | ||
namespace Rafty.Infrastructure | ||
{ | ||
public interface IReportable | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Rafty/RaftyUrlConfig.cs → src/Rafty/Infrastructure/RaftyUrlConfig.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Rafty | ||
namespace Rafty.Infrastructure | ||
{ | ||
public static class RaftyUrlConfig | ||
{ | ||
|
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
src/Rafty/AppendEntries.cs → src/Rafty/Messages/AppendEntries.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/Rafty/BecomeCandidate.cs → src/Rafty/Messages/BecomeCandidate.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
using System; | ||
|
||
namespace Rafty | ||
namespace Rafty.Messages | ||
{ | ||
public class Message : IMessage | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
using System; | ||
|
||
namespace Rafty | ||
namespace Rafty.Messages | ||
{ | ||
public class RequestVote : Message | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
src/Rafty/SendHeartbeat.cs → src/Rafty/Messages/SendHeartbeat.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Rafty | ||
namespace Rafty.Messages | ||
{ | ||
public class SendHeartbeat : Message | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Rafty | ||
namespace Rafty.Messages | ||
{ | ||
public class SendToSelf : Message | ||
{ | ||
|
8 changes: 5 additions & 3 deletions
8
src/Rafty/FakeMessageBus.cs → src/Rafty/Messaging/FakeMessageBus.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.