mirror of
https://github.com/syntrex-lab/gomcp.git
synced 2026-05-09 11:32:37 +02:00
chore: add copyright headers, CI tests, and sanitize gitignore
This commit is contained in:
parent
5cbb3d89d3
commit
d1f844235e
325 changed files with 2267 additions and 902 deletions
|
|
@ -1,3 +1,7 @@
|
|||
// Copyright 2026 Syntrex Lab. All rights reserved.
|
||||
// Use of this source code is governed by an Apache-2.0 license
|
||||
// that can be found in the LICENSE file.
|
||||
|
||||
// Package ipc provides a cross-platform inter-process communication layer
|
||||
// for SENTINEL SOC Process Isolation (SEC-001).
|
||||
//
|
||||
|
|
@ -234,10 +238,10 @@ func DialWithRetry(ctx context.Context, name string, maxRetries int) (net.Conn,
|
|||
// BufferedSender wraps a Sender with an async buffer for non-blocking sends.
|
||||
// If the downstream pipe is slow, messages are buffered up to BufferSize.
|
||||
type BufferedSender struct {
|
||||
sender *Sender
|
||||
msgCh chan *SOCMessage
|
||||
done chan struct{}
|
||||
logger *slog.Logger
|
||||
sender *Sender
|
||||
msgCh chan *SOCMessage
|
||||
done chan struct{}
|
||||
logger *slog.Logger
|
||||
}
|
||||
|
||||
// NewBufferedSender creates a buffered async sender.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
// Copyright 2026 Syntrex Lab. All rights reserved.
|
||||
// Use of this source code is governed by an Apache-2.0 license
|
||||
// that can be found in the LICENSE file.
|
||||
|
||||
package ipc
|
||||
|
||||
import (
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
// Copyright 2026 Syntrex Lab. All rights reserved.
|
||||
// Use of this source code is governed by an Apache-2.0 license
|
||||
// that can be found in the LICENSE file.
|
||||
|
||||
//go:build !windows
|
||||
|
||||
package ipc
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
// Copyright 2026 Syntrex Lab. All rights reserved.
|
||||
// Use of this source code is governed by an Apache-2.0 license
|
||||
// that can be found in the LICENSE file.
|
||||
|
||||
//go:build windows
|
||||
|
||||
package ipc
|
||||
|
|
@ -38,7 +42,7 @@ func platformDial(name string) (net.Conn, error) {
|
|||
// In production, these would be actual Windows named pipes.
|
||||
func pipeTCPPort(name string) int {
|
||||
ports := map[string]int{
|
||||
"soc-ingest-to-correlate": 19751,
|
||||
"soc-ingest-to-correlate": 19751,
|
||||
"soc-correlate-to-respond": 19752,
|
||||
}
|
||||
if p, ok := ports[name]; ok {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
// Copyright 2026 Syntrex Lab. All rights reserved.
|
||||
// Use of this source code is governed by an Apache-2.0 license
|
||||
// that can be found in the LICENSE file.
|
||||
|
||||
//go:build !windows
|
||||
|
||||
package ipc
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
// Copyright 2026 Syntrex Lab. All rights reserved.
|
||||
// Use of this source code is governed by an Apache-2.0 license
|
||||
// that can be found in the LICENSE file.
|
||||
|
||||
//go:build windows
|
||||
|
||||
package ipc
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
// Copyright 2026 Syntrex Lab. All rights reserved.
|
||||
// Use of this source code is governed by an Apache-2.0 license
|
||||
// that can be found in the LICENSE file.
|
||||
|
||||
// Package ipc provides localhost IPC transport for Virtual Swarm peer
|
||||
// synchronization using Named Pipes (Windows) or Unix Domain Sockets.
|
||||
// Zero external dependencies — uses Go standard `net` package.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
// Copyright 2026 Syntrex Lab. All rights reserved.
|
||||
// Use of this source code is governed by an Apache-2.0 license
|
||||
// that can be found in the LICENSE file.
|
||||
|
||||
package ipc_test
|
||||
|
||||
import (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue