Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for blockChannel (0.48 sec)

  1. pkg/envoy/agent_test.go

    type TestProxy struct {
    	run          func(<-chan error) error
    	cleanup      func()
    	blockChannel chan any
    }
    
    func (tp TestProxy) Run(stop <-chan error) error {
    	if tp.run == nil {
    		return nil
    	}
    	return tp.run(stop)
    }
    
    func (tp TestProxy) Drain(bool) error {
    	tp.blockChannel <- "unblock"
    	return nil
    }
    
    func (tp TestProxy) Cleanup() {
    	if tp.cleanup != nil {
    		tp.cleanup()
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 19 20:22:09 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top