zhuhaow/NEKit

View on GitHub
src/Event/ObserverFactory.swift

Summary

Maintainability
A
0 mins
Test Coverage
import Foundation
 
open class ObserverFactory {
public static var currentFactory: ObserverFactory?
 
public init() {}
 
open func getObserverForTunnel(_ tunnel: Tunnel) -> Observer<TunnelEvent>? {
return nil
}
 
open func getObserverForAdapterSocket(_ socket: AdapterSocket) -> Observer<AdapterSocketEvent>? {
return nil
}
 
open func getObserverForProxySocket(_ socket: ProxySocket) -> Observer<ProxySocketEvent>? {
return nil
}
 
open func getObserverForProxyServer(_ server: ProxyServer) -> Observer<ProxyServerEvent>? {
return nil
}
 
open func getObserverForRuleManager(_ manager: RuleManager) -> Observer<RuleMatchEvent>? {
return nil
Function should have at least one blank line after it
}
}