mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-05 02:31:07 +00:00
* Call `SetProtocol` in AMQP faster and remove `GetProtocol` method * #run_acceptance_tests * Remove the unused fields from the test mocks #run_acceptance_tests
29 lines
534 B
Go
29 lines
534 B
Go
package tlstapper
|
|
|
|
import "github.com/up9inc/mizu/tap/api"
|
|
|
|
type tlsStream struct {
|
|
reader *tlsReader
|
|
protocol *api.Protocol
|
|
}
|
|
|
|
func (t *tlsStream) GetOrigin() api.Capture {
|
|
return api.Ebpf
|
|
}
|
|
|
|
func (t *tlsStream) SetProtocol(protocol *api.Protocol) {
|
|
t.protocol = protocol
|
|
}
|
|
|
|
func (t *tlsStream) GetReqResMatchers() []api.RequestResponseMatcher {
|
|
return []api.RequestResponseMatcher{t.reader.reqResMatcher}
|
|
}
|
|
|
|
func (t *tlsStream) GetIsTapTarget() bool {
|
|
return true
|
|
}
|
|
|
|
func (t *tlsStream) GetIsClosed() bool {
|
|
return false
|
|
}
|