agents/anchor-edge-agent/internal/transport/mtls_sender.go
Metadata
- Purpose: Edge agent runtime code for endpoint telemetry collection and transport.
- Domain:
agents - Language:
go - Bytes: 1949
- Lines: 98
- Content hash (short):
431e9d14 - Source (start): agents/anchor-edge-agent/internal/transport/mtls_sender.go:1
- Source (end): agents/anchor-edge-agent/internal/transport/mtls_sender.go:98
Indexed Symbols
NewMTLSSender(line 31, go function) - Implements new mtlssender for transport delivery.Send(line 67, go function) - Implements send for transport delivery.
Markdown Headings (if applicable)
No markdown headings detected.
Source Preview
package transport
import (
"bytes"
"crypto/tls"
"crypto/x509"
"encoding/json"
"errors"
"fmt"
"net/http"
"os"
"time"
"github.com/anchor-msp/anchor-edge-agent/internal/types"
)
type SenderConfig struct {
EndpointURL string
CaFile string
CertFile string
KeyFile string
Token string
}
type MTLSSender struct {