Skip to content

Commit

Permalink
unexport processevents
Browse files Browse the repository at this point in the history
  • Loading branch information
conneroisu committed Nov 7, 2024
1 parent 6f45411 commit 15c1330
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions extensions/e2b/sandbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ type (
)

const (
OnStdout ProcessEvents = "onStdout" // OnStdout is the event for the stdout.
OnStderr ProcessEvents = "onStderr" // OnStderr is the event for the stderr.
OnExit ProcessEvents = "onExit" // OnExit is the event for the exit.
onStdout ProcessEvents = "onStdout" // OnStdout is the event for the stdout.
onStderr ProcessEvents = "onStderr" // OnStderr is the event for the stderr.
onExit ProcessEvents = "onExit" // OnExit is the event for the exit.

rpc = "2.0"
charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
Expand Down Expand Up @@ -481,17 +481,17 @@ func (p *Process) Done() <-chan struct{} {

// SubscribeStdout subscribes to the process's stdout.
func (p *Process) SubscribeStdout(ctx context.Context) (chan Event, chan error) {
return p.subscribe(ctx, OnStdout)
return p.subscribe(ctx, onStdout)
}

// SubscribeStderr subscribes to the process's stderr.
func (p *Process) SubscribeStderr(ctx context.Context) (chan Event, chan error) {
return p.subscribe(ctx, OnStderr)
return p.subscribe(ctx, onStderr)
}

// SubscribeExit subscribes to the process's exit.
func (p *Process) SubscribeExit(ctx context.Context) (chan Event, chan error) {
return p.subscribe(ctx, OnExit)
return p.subscribe(ctx, onExit)
}

// Subscribe subscribes to a process event.
Expand Down

0 comments on commit 15c1330

Please sign in to comment.