Updated versionand remote

This commit is contained in:
2026-05-12 06:53:15 +00:00
parent 139c224a31
commit caa45ed603
36 changed files with 67 additions and 67 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"fmt"
"os"
"github.com/jasper/quptime/internal/cli"
"git.cer.sh/axodouble/quptime/internal/cli"
)
func main() {
+2 -2
View File
@@ -1,6 +1,6 @@
module github.com/jasper/quptime
module git.cer.sh/axodouble/quptime
go 1.23
go 1.23.0
require (
github.com/spf13/cobra v1.8.1
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"net/http"
"time"
"github.com/jasper/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/config"
)
// discordTimeout caps how long a single webhook POST is allowed to
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"fmt"
"log"
"github.com/jasper/quptime/internal/checks"
"github.com/jasper/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/checks"
"git.cer.sh/axodouble/quptime/internal/config"
)
// Dispatcher fans an aggregator transition out to every alert listed
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"strings"
"time"
"github.com/jasper/quptime/internal/checks"
"github.com/jasper/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/checks"
"git.cer.sh/axodouble/quptime/internal/config"
)
// Message is the rendered notification ready to ship across any
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"strings"
"testing"
"github.com/jasper/quptime/internal/checks"
"github.com/jasper/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/checks"
"git.cer.sh/axodouble/quptime/internal/config"
)
func TestRenderDownTransition(t *testing.T) {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"net/smtp"
"strings"
"github.com/jasper/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/config"
)
// sendSMTP delivers msg through the alert's SMTP relay. STARTTLS is
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"sync"
"time"
"github.com/jasper/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/config"
)
// State is the aggregate verdict on one check.
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/jasper/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/config"
)
func TestAggregatorHysteresisRequiresConsecutiveEvals(t *testing.T) {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strings"
"time"
"github.com/jasper/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/config"
)
// maxBodyRead is the cap on how much body a check will pull when
+1 -1
View File
@@ -7,7 +7,7 @@ import (
probing "github.com/prometheus-community/pro-bing"
"github.com/jasper/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/config"
)
type icmpProber struct{}
+1 -1
View File
@@ -13,7 +13,7 @@ import (
"fmt"
"time"
"github.com/jasper/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/config"
)
// Result is the outcome of a single probe.
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"testing"
"time"
"github.com/jasper/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/config"
)
func TestHTTPProberHappyPath(t *testing.T) {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"sync"
"time"
"github.com/jasper/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/config"
)
// ReconcileInterval is how often the scheduler reconciles its set of
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"net"
"time"
"github.com/jasper/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/config"
)
type tcpProber struct{}
+3 -3
View File
@@ -10,9 +10,9 @@ import (
"github.com/google/uuid"
"github.com/spf13/cobra"
"github.com/jasper/quptime/internal/config"
"github.com/jasper/quptime/internal/daemon"
"github.com/jasper/quptime/internal/transport"
"git.cer.sh/axodouble/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/daemon"
"git.cer.sh/axodouble/quptime/internal/transport"
)
func addAlertCmd(root *cobra.Command) {
+3 -3
View File
@@ -10,9 +10,9 @@ import (
"github.com/google/uuid"
"github.com/spf13/cobra"
"github.com/jasper/quptime/internal/config"
"github.com/jasper/quptime/internal/daemon"
"github.com/jasper/quptime/internal/transport"
"git.cer.sh/axodouble/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/daemon"
"git.cer.sh/axodouble/quptime/internal/transport"
)
func addCheckCmd(root *cobra.Command) {
+2 -2
View File
@@ -10,8 +10,8 @@ import (
"net"
"time"
"github.com/jasper/quptime/internal/config"
"github.com/jasper/quptime/internal/daemon"
"git.cer.sh/axodouble/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/daemon"
)
// callDaemon sends one control-plane request and decodes the
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"github.com/google/uuid"
"github.com/spf13/cobra"
"github.com/jasper/quptime/internal/config"
"github.com/jasper/quptime/internal/crypto"
"git.cer.sh/axodouble/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/crypto"
)
func addInitCmd(root *cobra.Command) {
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"github.com/spf13/cobra"
"github.com/jasper/quptime/internal/daemon"
"git.cer.sh/axodouble/quptime/internal/daemon"
)
func addNodeCmd(root *cobra.Command) {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"github.com/spf13/cobra"
"github.com/jasper/quptime/internal/daemon"
"git.cer.sh/axodouble/quptime/internal/daemon"
)
func addServeCmd(root *cobra.Command) {
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"github.com/spf13/cobra"
"github.com/jasper/quptime/internal/daemon"
"github.com/jasper/quptime/internal/transport"
"git.cer.sh/axodouble/quptime/internal/daemon"
"git.cer.sh/axodouble/quptime/internal/transport"
)
func addStatusCmd(root *cobra.Command) {
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"github.com/spf13/cobra"
"github.com/jasper/quptime/internal/daemon"
"github.com/jasper/quptime/internal/trust"
"git.cer.sh/axodouble/quptime/internal/daemon"
"git.cer.sh/axodouble/quptime/internal/trust"
)
func addTrustCmd(root *cobra.Command) {
+1 -1
View File
@@ -14,7 +14,7 @@ import (
"fmt"
"os"
"github.com/jasper/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/config"
)
// KeySize is the RSA modulus size used by qu.
+4 -4
View File
@@ -12,10 +12,10 @@ import (
"path/filepath"
"sync"
"github.com/jasper/quptime/internal/config"
"github.com/jasper/quptime/internal/crypto"
"github.com/jasper/quptime/internal/transport"
"github.com/jasper/quptime/internal/trust"
"git.cer.sh/axodouble/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/crypto"
"git.cer.sh/axodouble/quptime/internal/transport"
"git.cer.sh/axodouble/quptime/internal/trust"
)
// controlMaxFrame caps unix-socket request/response frames. Generous
+8 -8
View File
@@ -22,14 +22,14 @@ import (
"sync"
"time"
"github.com/jasper/quptime/internal/alerts"
"github.com/jasper/quptime/internal/checks"
"github.com/jasper/quptime/internal/config"
"github.com/jasper/quptime/internal/crypto"
"github.com/jasper/quptime/internal/quorum"
"github.com/jasper/quptime/internal/replicate"
"github.com/jasper/quptime/internal/transport"
"github.com/jasper/quptime/internal/trust"
"git.cer.sh/axodouble/quptime/internal/alerts"
"git.cer.sh/axodouble/quptime/internal/checks"
"git.cer.sh/axodouble/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/crypto"
"git.cer.sh/axodouble/quptime/internal/quorum"
"git.cer.sh/axodouble/quptime/internal/replicate"
"git.cer.sh/axodouble/quptime/internal/transport"
"git.cer.sh/axodouble/quptime/internal/trust"
)
// Daemon is the live process: every long-running component lives here.
+4 -4
View File
@@ -5,10 +5,10 @@ import (
"encoding/json"
"time"
"github.com/jasper/quptime/internal/checks"
"github.com/jasper/quptime/internal/crypto"
"github.com/jasper/quptime/internal/transport"
"github.com/jasper/quptime/internal/trust"
"git.cer.sh/axodouble/quptime/internal/checks"
"git.cer.sh/axodouble/quptime/internal/crypto"
"git.cer.sh/axodouble/quptime/internal/transport"
"git.cer.sh/axodouble/quptime/internal/trust"
)
// registerHandlers wires every inter-node RPC method that the daemon
+2 -2
View File
@@ -24,8 +24,8 @@ import (
"sync"
"time"
"github.com/jasper/quptime/internal/config"
"github.com/jasper/quptime/internal/transport"
"git.cer.sh/axodouble/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/transport"
)
// Defaults for the heartbeat loop. The dead-after is comfortably
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"testing"
"time"
"github.com/jasper/quptime/internal/config"
"github.com/jasper/quptime/internal/transport"
"git.cer.sh/axodouble/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/transport"
)
func threeNode(self string) (*config.ClusterConfig, *Manager) {
+2 -2
View File
@@ -23,8 +23,8 @@ import (
"fmt"
"time"
"github.com/jasper/quptime/internal/config"
"github.com/jasper/quptime/internal/transport"
"git.cer.sh/axodouble/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/transport"
)
// MasterView is the minimum the replicator needs from the quorum
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"sync"
"testing"
"github.com/jasper/quptime/internal/config"
"github.com/jasper/quptime/internal/transport"
"git.cer.sh/axodouble/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/transport"
)
type fakeMaster struct {
+1 -1
View File
@@ -17,7 +17,7 @@ import (
"encoding/json"
"time"
"github.com/jasper/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/config"
)
// Method names. Defined here so every package agrees on the wire-level
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"testing"
"time"
"github.com/jasper/quptime/internal/crypto"
"github.com/jasper/quptime/internal/trust"
"git.cer.sh/axodouble/quptime/internal/crypto"
"git.cer.sh/axodouble/quptime/internal/trust"
)
// testNode bundles everything one side of the handshake needs.
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"errors"
"fmt"
"github.com/jasper/quptime/internal/trust"
"git.cer.sh/axodouble/quptime/internal/trust"
)
// MinTLS is the minimum protocol version both sides require.
+2 -2
View File
@@ -20,8 +20,8 @@ import (
"gopkg.in/yaml.v3"
"github.com/jasper/quptime/internal/config"
"github.com/jasper/quptime/internal/crypto"
"git.cer.sh/axodouble/quptime/internal/config"
"git.cer.sh/axodouble/quptime/internal/crypto"
)
// Entry is one trusted peer.
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/pem"
"testing"
"github.com/jasper/quptime/internal/crypto"
"git.cer.sh/axodouble/quptime/internal/crypto"
)
func TestRoundtripAndLookup(t *testing.T) {