Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewPipe = func(c PipeClient, appID string) (string, xfer.Pipe, error) { pipeID := fmt.Sprintf("pipe-%d", rand.Int63()) pipe := &pipe{ Pipe: xfer.NewPipe(), appID: appID, id: pipeID, client: c, } if err := c.PipeConnection(appID, pipeID, pipe.Pipe); err != nil { return "", nil, err } return pipeID, pipe, nil }
NewPipe creats a new pipe and connects it to the app.
Functions ¶
func HandleControlRequest ¶
HandleControlRequest performs a control request.
func Register ¶
func Register(control string, f xfer.ControlHandlerFunc)
Register a new control handler under a given id.
Types ¶
Click to show internal directories.
Click to hide internal directories.