Documentation ¶
Index ¶
- func TransparentProxy(clientConn, serverConn net.Conn)
- type CfTrace
- type Provider
- func (a *Provider) Close()
- func (a *Provider) GenerateInitialWSResponse(ctx context.Context, clientConn net.Conn, req *http.Request) ([]byte, error)
- func (a *Provider) GetMtlsConfig(config *schema.ProviderConfig) (*tls.Config, error)
- func (a *Provider) Handle(ctx context.Context)
- func (a *Provider) Listen(ctx context.Context, port int, config *schema.ProviderConfig) error
- func (a *Provider) ReadInitiaWSRequest(ctx context.Context, connReader *bufio.Reader) (*schema.ClientConfig, *http.Request, context.Context, error)
- type Pubsub
- func (a *Pubsub) GetCftrace() (*CfTrace, error)
- func (a *Pubsub) InitByDB(ctx context.Context, ps *p2p.PubSub)
- func (a *Pubsub) NewServerInfo() *schema.NodeInfo
- func (a *Pubsub) ParseW3sData(ctx context.Context, order *schema.NodeOrder) (*schema.ProviderConfig, error)
- func (a *Pubsub) ReceiveHandle(ctx context.Context, ps *p2p.PubSub, msg string) error
- func (a *Pubsub) StartPubsubHandler(ctx context.Context, ps *p2p.PubSub, p *p2p.P2P)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TransparentProxy ¶
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProvider() *Provider
func (*Provider) GenerateInitialWSResponse ¶
func (a *Provider) GenerateInitialWSResponse(ctx context.Context, clientConn net.Conn, req *http.Request) ([]byte, error)
Responding to WS requests
func (*Provider) GetMtlsConfig ¶
type Pubsub ¶
type Pubsub struct { Orders map[string]*schema.NodeOrder // contains filtered or unexported fields }
Pubsub
func (*Pubsub) GetCftrace ¶
func (*Pubsub) NewServerInfo ¶
func (*Pubsub) ParseW3sData ¶
func (*Pubsub) ReceiveHandle ¶
Click to show internal directories.
Click to hide internal directories.