Skip to main content

agents/anchor-edge-agent/internal/transport/mtls_sender.go

Metadata

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 {