Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- type Controller
- type HttpTransport
- type PTM
- func (m *PTM) GetDebugInfo() map[string]interface{}
- func (m *PTM) Init() error
- func (m *PTM) Receive(data []byte) ([]byte, error)
- func (m *PTM) Send(data []byte, from string, to []string) (out []byte, err error)
- func (m *PTM) SetFakeMode(mode bool)
- func (m *PTM) Start() error
- func (m *PTM) Stop() error
- type Transport
- type UnixTransport
Constants ¶
View Source
const UnixScheme = "http+unix"
Scheme is the URL scheme used for HTTP over UNIX domain sockets.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SendPayload ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(cc *context.ChainContext) *Controller
func (*Controller) Init ¶
func (c *Controller) Init() error
func (*Controller) Start ¶
func (c *Controller) Start() error
func (*Controller) Stop ¶
func (c *Controller) Stop() error
type HttpTransport ¶
type HttpTransport struct {
// contains filtered or unexported fields
}
func (*HttpTransport) SetFakeMode ¶
func (t *HttpTransport) SetFakeMode(mode bool)
type PTM ¶
type PTM struct {
// contains filtered or unexported fields
}
func (*PTM) GetDebugInfo ¶
func (*PTM) SetFakeMode ¶
type Transport ¶
type Transport interface { http.RoundTripper SetFakeMode(mode bool) }
type UnixTransport ¶
type UnixTransport struct { // DialTimeout is deprecated. Use context instead. DialTimeout time.Duration // RequestTimeout is deprecated and has no effect. RequestTimeout time.Duration // ResponseHeaderTimeout is deprecated. Use context instead. ResponseHeaderTimeout time.Duration // contains filtered or unexported fields }
UnixTransport is a http.RoundTripper that connects to Unix domain sockets.
func (*UnixTransport) RegisterLocation ¶
func (t *UnixTransport) RegisterLocation(loc string, path string)
RegisterLocation registers an URL location and maps it to the given file system path.
Calling RegisterLocation twice for the same location is a programmer error, and causes a panic.
func (*UnixTransport) RoundTrip ¶
RoundTrip executes a single HTTP transaction. See net/http.RoundTripper.
func (*UnixTransport) SetFakeMode ¶
func (t *UnixTransport) SetFakeMode(mode bool)
Click to show internal directories.
Click to hide internal directories.