Public declaration syntax from forge-go/mcp/transport.go Original source SHA-256: 4b33971f31ffb853577999bcf544515ea6bae3308339fcb5c040b26bc0360806 Function bodies and constant values are omitted. This is not the complete implementation. Source line 18 type TransportType string const ( // TransportTypeStdio uses standard input/output for communication. TransportTypeStdio TransportType; Source line 34 type TransportConfig struct Source line 52 type McpTransport interface Source line 86 func CreateTransport(config TransportConfig) (McpTransport, error) Source line 108 type StdioTransport struct Source line 120 func NewStdioTransport(r io.Reader, w io.Writer) *StdioTransport Source line 128 func (t *StdioTransport) Send(_ context.Context, data []byte) error Source line 146 func (t *StdioTransport) Receive(_ context.Context) ([]byte, error) Source line 163 func (t *StdioTransport) Close() error Source line 178 type SSETransport struct Source line 189 func NewSSETransport(url string) *SSETransport Source line 199 func (t *SSETransport) Send(ctx context.Context, data []byte) error Source line 227 func (t *SSETransport) Receive(ctx context.Context) ([]byte, error) Source line 249 func (t *SSETransport) ConnectSSE(ctx context.Context) error Source line 303 func (t *SSETransport) Close() error Source line 315 type HTTPTransport struct Source line 324 func NewHTTPTransport(url string) *HTTPTransport Source line 333 func (t *HTTPTransport) Send(ctx context.Context, data []byte) error Source line 365 func (t *HTTPTransport) Receive(ctx context.Context) ([]byte, error) Source line 382 func (t *HTTPTransport) Close() error