namespace NATS.Server.Raft;

public sealed class VoteRequest
{
    public int Term { get; init; }
    public string CandidateId { get; init; } = string.Empty;
}

public sealed class VoteResponse
{
    public bool Granted { get; init; }
}

public sealed class AppendResult
{
    public string FollowerId { get; init; } = string.Empty;
    public bool Success { get; init; }
}
