Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type FakeContainer
- type LoopbackHandler
- type MockAppSet
- type MockAppSetMockRecorder
- type MockBufferPolicy
- type MockBufferPolicyMockRecorder
- type MockContainer
- type MockContainerMockRecorder
- type MockDefaultInterfaceChangeObserver
- type MockDefaultInterfaceChangeObserverMockRecorder
- type MockDefaultInterfaceChangeSubject
- func (m *MockDefaultInterfaceChangeSubject) EXPECT() *MockDefaultInterfaceChangeSubjectMockRecorder
- func (m *MockDefaultInterfaceChangeSubject) Notify()
- func (m *MockDefaultInterfaceChangeSubject) Register(observer i.DefaultInterfaceChangeObserver)
- func (m *MockDefaultInterfaceChangeSubject) Unregister(observer i.DefaultInterfaceChangeObserver)
- type MockDefaultInterfaceChangeSubjectMockRecorder
- type MockDefaultInterfaceInfo
- func (m *MockDefaultInterfaceInfo) DefaultDns4() []netip.Addr
- func (m *MockDefaultInterfaceInfo) DefaultDns6() []netip.Addr
- func (m *MockDefaultInterfaceInfo) DefaultInterface4() uint32
- func (m *MockDefaultInterfaceInfo) DefaultInterface6() uint32
- func (m *MockDefaultInterfaceInfo) DefaultInterfaceName4() string
- func (m *MockDefaultInterfaceInfo) DefaultInterfaceName6() string
- func (m *MockDefaultInterfaceInfo) EXPECT() *MockDefaultInterfaceInfoMockRecorder
- func (m *MockDefaultInterfaceInfo) HasGlobalIPv6() (bool, error)
- func (m *MockDefaultInterfaceInfo) Notify()
- func (m *MockDefaultInterfaceInfo) Register(observer i.DefaultInterfaceChangeObserver)
- func (m *MockDefaultInterfaceInfo) SupportIPv6() int
- func (m *MockDefaultInterfaceInfo) Unregister(observer i.DefaultInterfaceChangeObserver)
- type MockDefaultInterfaceInfoMockRecorder
- func (mr *MockDefaultInterfaceInfoMockRecorder) DefaultDns4() *gomock.Call
- func (mr *MockDefaultInterfaceInfoMockRecorder) DefaultDns6() *gomock.Call
- func (mr *MockDefaultInterfaceInfoMockRecorder) DefaultInterface4() *gomock.Call
- func (mr *MockDefaultInterfaceInfoMockRecorder) DefaultInterface6() *gomock.Call
- func (mr *MockDefaultInterfaceInfoMockRecorder) DefaultInterfaceName4() *gomock.Call
- func (mr *MockDefaultInterfaceInfoMockRecorder) DefaultInterfaceName6() *gomock.Call
- func (mr *MockDefaultInterfaceInfoMockRecorder) HasGlobalIPv6() *gomock.Call
- func (mr *MockDefaultInterfaceInfoMockRecorder) Notify() *gomock.Call
- func (mr *MockDefaultInterfaceInfoMockRecorder) Register(observer interface{}) *gomock.Call
- func (mr *MockDefaultInterfaceInfoMockRecorder) SupportIPv6() *gomock.Call
- func (mr *MockDefaultInterfaceInfoMockRecorder) Unregister(observer interface{}) *gomock.Call
- type MockDialer
- type MockDialerListener
- type MockDialerListenerMockRecorder
- type MockDialerMockRecorder
- type MockDispatcher
- type MockDispatcherMockRecorder
- type MockDomainSet
- type MockDomainSetMockRecorder
- type MockFakeDnsPool
- type MockFakeDnsPoolMockRecorder
- type MockFlowHandler
- type MockFlowHandlerMockRecorder
- type MockGeoHelper
- type MockGeoHelperMockRecorder
- type MockHandler
- type MockHandlerErrorObserver
- type MockHandlerErrorObserverMockRecorder
- type MockHandlerMockRecorder
- type MockHandlerWith6Info
- func (m *MockHandlerWith6Info) EXPECT() *MockHandlerWith6InfoMockRecorder
- func (m *MockHandlerWith6Info) HandleFlow(ctx context.Context, info *session.Info, rw buf.ReaderWriter) error
- func (m *MockHandlerWith6Info) HandlePacketConn(ctx context.Context, info *session.Info, p udp.PacketReaderWriter) error
- func (m *MockHandlerWith6Info) Support6() bool
- func (m *MockHandlerWith6Info) Tag() string
- type MockHandlerWith6InfoMockRecorder
- func (mr *MockHandlerWith6InfoMockRecorder) HandleFlow(ctx, info, rw interface{}) *gomock.Call
- func (mr *MockHandlerWith6InfoMockRecorder) HandlePacketConn(ctx, info, p interface{}) *gomock.Call
- func (mr *MockHandlerWith6InfoMockRecorder) Support6() *gomock.Call
- func (mr *MockHandlerWith6InfoMockRecorder) Tag() *gomock.Call
- type MockIPResolver
- func (m *MockIPResolver) EXPECT() *MockIPResolverMockRecorder
- func (m *MockIPResolver) LookupIP(ctx context.Context, domain string) ([]net.IP, error)
- func (m *MockIPResolver) LookupIPv4(ctx context.Context, domain string) ([]net.IP, error)
- func (m *MockIPResolver) LookupIPv6(ctx context.Context, domain string) ([]net.IP, error)
- type MockIPResolverMockRecorder
- type MockIPSet
- type MockIPSetMockRecorder
- type MockIPv6SupportChangeObserver
- type MockIPv6SupportChangeObserverMockRecorder
- type MockIPv6SupportChangeSubject
- func (m *MockIPv6SupportChangeSubject) EXPECT() *MockIPv6SupportChangeSubjectMockRecorder
- func (m *MockIPv6SupportChangeSubject) Notify()
- func (m *MockIPv6SupportChangeSubject) Register(observer i.IPv6SupportChangeObserver)
- func (m *MockIPv6SupportChangeSubject) Unregister(observer i.IPv6SupportChangeObserver)
- type MockIPv6SupportChangeSubjectMockRecorder
- type MockInterfaceMonitor
- func (m *MockInterfaceMonitor) DefaultDnsServerAddr() []netip.Addr
- func (m *MockInterfaceMonitor) DefaultInterfaceName4() string
- func (m *MockInterfaceMonitor) DefaultInterfaceName6() string
- func (m *MockInterfaceMonitor) EXPECT() *MockInterfaceMonitorMockRecorder
- func (m *MockInterfaceMonitor) TunEnabled() bool
- type MockInterfaceMonitorMockRecorder
- func (mr *MockInterfaceMonitorMockRecorder) DefaultDnsServerAddr() *gomock.Call
- func (mr *MockInterfaceMonitorMockRecorder) DefaultInterfaceName4() *gomock.Call
- func (mr *MockInterfaceMonitorMockRecorder) DefaultInterfaceName6() *gomock.Call
- func (mr *MockInterfaceMonitorMockRecorder) TunEnabled() *gomock.Call
- type MockIpToDomain
- type MockIpToDomainMockRecorder
- type MockListener
- type MockListenerMockRecorder
- type MockMyConn
- type MockMyConnMockRecorder
- type MockMyPacketConn
- type MockMyPacketConnMockRecorder
- type MockNamedHandler
- func (m *MockNamedHandler) EXPECT() *MockNamedHandlerMockRecorder
- func (m *MockNamedHandler) HandleFlow(ctx context.Context, info *session.Info, rw buf.ReaderWriter) error
- func (m *MockNamedHandler) HandlePacketConn(ctx context.Context, info *session.Info, p udp.PacketReaderWriter) error
- func (m *MockNamedHandler) Tag() string
- type MockNamedHandlerMockRecorder
- type MockOutboundManager
- type MockOutboundManagerMockRecorder
- type MockPacketHandler
- type MockPacketHandlerMockRecorder
- type MockPacketListener
- type MockPacketListenerMockRecorder
- type MockPortSelector
- type MockPortSelectorMockRecorder
- type MockProxyClient
- func (m *MockProxyClient) EXPECT() *MockProxyClientMockRecorder
- func (m *MockProxyClient) HandleFlow(ctx context.Context, info *session.Info, rw buf.ReaderWriter, dialer i.Dialer) error
- func (m *MockProxyClient) HandlePacketConn(ctx context.Context, info *session.Info, pc udp.PacketReaderWriter, ...) error
- type MockProxyClientMockRecorder
- type MockProxyClientProcessor
- func (m *MockProxyClientProcessor) EXPECT() *MockProxyClientProcessorMockRecorder
- func (m *MockProxyClientProcessor) ProcessConn(ctx context.Context, conn net.Conn) (net.Conn, error)
- func (m *MockProxyClientProcessor) ProcessPacketConn(ctx context.Context, conn net.PacketConn) (net.PacketConn, error)
- type MockProxyClientProcessorMockRecorder
- type MockProxyPacketConn
- type MockProxyPacketConnMockRecorder
- type MockProxyServerProcessor
- type MockProxyServerProcessorMockRecorder
- type MockRouter
- type MockRouterMockRecorder
- type MockRunnableDialer
- type MockRunnableDialerMockRecorder
- type MockStatsSetting
- func (m *MockStatsSetting) CalculateInboundLinkStats() bool
- func (m *MockStatsSetting) CalculateInboundStats() bool
- func (m *MockStatsSetting) CalculateOutboundLinkStats() bool
- func (m *MockStatsSetting) CalculateSessionStats() bool
- func (m *MockStatsSetting) CalculateUserStats() bool
- func (m *MockStatsSetting) EXPECT() *MockStatsSettingMockRecorder
- type MockStatsSettingMockRecorder
- func (mr *MockStatsSettingMockRecorder) CalculateInboundLinkStats() *gomock.Call
- func (mr *MockStatsSettingMockRecorder) CalculateInboundStats() *gomock.Call
- func (mr *MockStatsSettingMockRecorder) CalculateOutboundLinkStats() *gomock.Call
- func (mr *MockStatsSettingMockRecorder) CalculateSessionStats() *gomock.Call
- func (mr *MockStatsSettingMockRecorder) CalculateUserStats() *gomock.Call
- type MockTimeoutSetting
- func (m *MockTimeoutSetting) DnsIdleTimeout() time.Duration
- func (m *MockTimeoutSetting) DownLinkOnlyTimeout() time.Duration
- func (m *MockTimeoutSetting) EXPECT() *MockTimeoutSettingMockRecorder
- func (m *MockTimeoutSetting) HandshakeTimeout() time.Duration
- func (m *MockTimeoutSetting) TcpIdleTimeout() time.Duration
- func (m *MockTimeoutSetting) UdpIdleTimeout() time.Duration
- func (m *MockTimeoutSetting) UpLinkOnlyTimeout() time.Duration
- type MockTimeoutSettingMockRecorder
- func (mr *MockTimeoutSettingMockRecorder) DnsIdleTimeout() *gomock.Call
- func (mr *MockTimeoutSettingMockRecorder) DownLinkOnlyTimeout() *gomock.Call
- func (mr *MockTimeoutSettingMockRecorder) HandshakeTimeout() *gomock.Call
- func (mr *MockTimeoutSettingMockRecorder) TcpIdleTimeout() *gomock.Call
- func (mr *MockTimeoutSettingMockRecorder) UdpIdleTimeout() *gomock.Call
- func (mr *MockTimeoutSettingMockRecorder) UpLinkOnlyTimeout() *gomock.Call
- type MockTunInfo
- type MockTunInfoMockRecorder
- type MockUint64Counter
- type MockUint64CounterMockRecorder
- type MockUser
- type MockUserMockRecorder
- type MockUserValidator
- type MockUserValidatorMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeContainer ¶
type FakeContainer struct {
Interfaces []interface{}
}
func (*FakeContainer) RequireFeatures ¶
func (c *FakeContainer) RequireFeatures(callback interface{}, must bool) error
type LoopbackHandler ¶
type LoopbackHandler struct {
}
func NewLoopbackHandler ¶
func NewLoopbackHandler() *LoopbackHandler
func (*LoopbackHandler) HandleFlow ¶
func (p *LoopbackHandler) HandleFlow(ctx context.Context, dst net.Destination, rw buf.ReaderWriter) error
func (*LoopbackHandler) HandlePacketConn ¶
func (p *LoopbackHandler) HandlePacketConn(ctx context.Context, dst net.Destination, conn udp.PacketReaderWriter) error
type MockAppSet ¶
type MockAppSet struct {
// contains filtered or unexported fields
}
MockAppSet is a mock of AppSet interface.
func NewMockAppSet ¶
func NewMockAppSet(ctrl *gomock.Controller) *MockAppSet
NewMockAppSet creates a new mock instance.
func (*MockAppSet) EXPECT ¶
func (m *MockAppSet) EXPECT() *MockAppSetMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAppSetMockRecorder ¶
type MockAppSetMockRecorder struct {
// contains filtered or unexported fields
}
MockAppSetMockRecorder is the mock recorder for MockAppSet.
func (*MockAppSetMockRecorder) Match ¶
func (mr *MockAppSetMockRecorder) Match(appId interface{}) *gomock.Call
Match indicates an expected call of Match.
type MockBufferPolicy ¶
type MockBufferPolicy struct {
// contains filtered or unexported fields
}
MockBufferPolicy is a mock of BufferPolicy interface.
func NewMockBufferPolicy ¶
func NewMockBufferPolicy(ctrl *gomock.Controller) *MockBufferPolicy
NewMockBufferPolicy creates a new mock instance.
func (*MockBufferPolicy) EXPECT ¶
func (m *MockBufferPolicy) EXPECT() *MockBufferPolicyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBufferPolicy) UserBufferSize ¶
func (m *MockBufferPolicy) UserBufferSize(level uint32) int32
UserBufferSize mocks base method.
type MockBufferPolicyMockRecorder ¶
type MockBufferPolicyMockRecorder struct {
// contains filtered or unexported fields
}
MockBufferPolicyMockRecorder is the mock recorder for MockBufferPolicy.
func (*MockBufferPolicyMockRecorder) UserBufferSize ¶
func (mr *MockBufferPolicyMockRecorder) UserBufferSize(level interface{}) *gomock.Call
UserBufferSize indicates an expected call of UserBufferSize.
type MockContainer ¶
type MockContainer struct {
// contains filtered or unexported fields
}
MockContainer is a mock of Container interface.
func NewMockContainer ¶
func NewMockContainer(ctrl *gomock.Controller) *MockContainer
NewMockContainer creates a new mock instance.
func (*MockContainer) EXPECT ¶
func (m *MockContainer) EXPECT() *MockContainerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockContainer) RequireFeatures ¶
func (m *MockContainer) RequireFeatures(callback interface{}, optional bool) error
RequireFeatures mocks base method.
type MockContainerMockRecorder ¶
type MockContainerMockRecorder struct {
// contains filtered or unexported fields
}
MockContainerMockRecorder is the mock recorder for MockContainer.
func (*MockContainerMockRecorder) RequireFeatures ¶
func (mr *MockContainerMockRecorder) RequireFeatures(callback, optional interface{}) *gomock.Call
RequireFeatures indicates an expected call of RequireFeatures.
type MockDefaultInterfaceChangeObserver ¶
type MockDefaultInterfaceChangeObserver struct {
// contains filtered or unexported fields
}
MockDefaultInterfaceChangeObserver is a mock of DefaultInterfaceChangeObserver interface.
func NewMockDefaultInterfaceChangeObserver ¶
func NewMockDefaultInterfaceChangeObserver(ctrl *gomock.Controller) *MockDefaultInterfaceChangeObserver
NewMockDefaultInterfaceChangeObserver creates a new mock instance.
func (*MockDefaultInterfaceChangeObserver) EXPECT ¶
func (m *MockDefaultInterfaceChangeObserver) EXPECT() *MockDefaultInterfaceChangeObserverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDefaultInterfaceChangeObserver) OnDefaultInterfaceChanged ¶
func (m *MockDefaultInterfaceChangeObserver) OnDefaultInterfaceChanged()
OnDefaultInterfaceChanged mocks base method.
type MockDefaultInterfaceChangeObserverMockRecorder ¶
type MockDefaultInterfaceChangeObserverMockRecorder struct {
// contains filtered or unexported fields
}
MockDefaultInterfaceChangeObserverMockRecorder is the mock recorder for MockDefaultInterfaceChangeObserver.
func (*MockDefaultInterfaceChangeObserverMockRecorder) OnDefaultInterfaceChanged ¶
func (mr *MockDefaultInterfaceChangeObserverMockRecorder) OnDefaultInterfaceChanged() *gomock.Call
OnDefaultInterfaceChanged indicates an expected call of OnDefaultInterfaceChanged.
type MockDefaultInterfaceChangeSubject ¶
type MockDefaultInterfaceChangeSubject struct {
// contains filtered or unexported fields
}
MockDefaultInterfaceChangeSubject is a mock of DefaultInterfaceChangeSubject interface.
func NewMockDefaultInterfaceChangeSubject ¶
func NewMockDefaultInterfaceChangeSubject(ctrl *gomock.Controller) *MockDefaultInterfaceChangeSubject
NewMockDefaultInterfaceChangeSubject creates a new mock instance.
func (*MockDefaultInterfaceChangeSubject) EXPECT ¶
func (m *MockDefaultInterfaceChangeSubject) EXPECT() *MockDefaultInterfaceChangeSubjectMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDefaultInterfaceChangeSubject) Notify ¶
func (m *MockDefaultInterfaceChangeSubject) Notify()
Notify mocks base method.
func (*MockDefaultInterfaceChangeSubject) Register ¶
func (m *MockDefaultInterfaceChangeSubject) Register(observer i.DefaultInterfaceChangeObserver)
Register mocks base method.
func (*MockDefaultInterfaceChangeSubject) Unregister ¶
func (m *MockDefaultInterfaceChangeSubject) Unregister(observer i.DefaultInterfaceChangeObserver)
Unregister mocks base method.
type MockDefaultInterfaceChangeSubjectMockRecorder ¶
type MockDefaultInterfaceChangeSubjectMockRecorder struct {
// contains filtered or unexported fields
}
MockDefaultInterfaceChangeSubjectMockRecorder is the mock recorder for MockDefaultInterfaceChangeSubject.
func (*MockDefaultInterfaceChangeSubjectMockRecorder) Notify ¶
func (mr *MockDefaultInterfaceChangeSubjectMockRecorder) Notify() *gomock.Call
Notify indicates an expected call of Notify.
func (*MockDefaultInterfaceChangeSubjectMockRecorder) Register ¶
func (mr *MockDefaultInterfaceChangeSubjectMockRecorder) Register(observer interface{}) *gomock.Call
Register indicates an expected call of Register.
func (*MockDefaultInterfaceChangeSubjectMockRecorder) Unregister ¶
func (mr *MockDefaultInterfaceChangeSubjectMockRecorder) Unregister(observer interface{}) *gomock.Call
Unregister indicates an expected call of Unregister.
type MockDefaultInterfaceInfo ¶
type MockDefaultInterfaceInfo struct {
// contains filtered or unexported fields
}
MockDefaultInterfaceInfo is a mock of DefaultInterfaceInfo interface.
func NewMockDefaultInterfaceInfo ¶
func NewMockDefaultInterfaceInfo(ctrl *gomock.Controller) *MockDefaultInterfaceInfo
NewMockDefaultInterfaceInfo creates a new mock instance.
func (*MockDefaultInterfaceInfo) DefaultDns4 ¶
func (m *MockDefaultInterfaceInfo) DefaultDns4() []netip.Addr
DefaultDns4 mocks base method.
func (*MockDefaultInterfaceInfo) DefaultDns6 ¶
func (m *MockDefaultInterfaceInfo) DefaultDns6() []netip.Addr
DefaultDns6 mocks base method.
func (*MockDefaultInterfaceInfo) DefaultInterface4 ¶
func (m *MockDefaultInterfaceInfo) DefaultInterface4() uint32
DefaultInterface4 mocks base method.
func (*MockDefaultInterfaceInfo) DefaultInterface6 ¶
func (m *MockDefaultInterfaceInfo) DefaultInterface6() uint32
DefaultInterface6 mocks base method.
func (*MockDefaultInterfaceInfo) DefaultInterfaceName4 ¶
func (m *MockDefaultInterfaceInfo) DefaultInterfaceName4() string
DefaultInterfaceName4 mocks base method.
func (*MockDefaultInterfaceInfo) DefaultInterfaceName6 ¶
func (m *MockDefaultInterfaceInfo) DefaultInterfaceName6() string
DefaultInterfaceName6 mocks base method.
func (*MockDefaultInterfaceInfo) EXPECT ¶
func (m *MockDefaultInterfaceInfo) EXPECT() *MockDefaultInterfaceInfoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDefaultInterfaceInfo) HasGlobalIPv6 ¶
func (m *MockDefaultInterfaceInfo) HasGlobalIPv6() (bool, error)
HasGlobalIPv6 mocks base method.
func (*MockDefaultInterfaceInfo) Notify ¶
func (m *MockDefaultInterfaceInfo) Notify()
Notify mocks base method.
func (*MockDefaultInterfaceInfo) Register ¶
func (m *MockDefaultInterfaceInfo) Register(observer i.DefaultInterfaceChangeObserver)
Register mocks base method.
func (*MockDefaultInterfaceInfo) SupportIPv6 ¶
func (m *MockDefaultInterfaceInfo) SupportIPv6() int
SupportIPv6 mocks base method.
func (*MockDefaultInterfaceInfo) Unregister ¶
func (m *MockDefaultInterfaceInfo) Unregister(observer i.DefaultInterfaceChangeObserver)
Unregister mocks base method.
type MockDefaultInterfaceInfoMockRecorder ¶
type MockDefaultInterfaceInfoMockRecorder struct {
// contains filtered or unexported fields
}
MockDefaultInterfaceInfoMockRecorder is the mock recorder for MockDefaultInterfaceInfo.
func (*MockDefaultInterfaceInfoMockRecorder) DefaultDns4 ¶
func (mr *MockDefaultInterfaceInfoMockRecorder) DefaultDns4() *gomock.Call
DefaultDns4 indicates an expected call of DefaultDns4.
func (*MockDefaultInterfaceInfoMockRecorder) DefaultDns6 ¶
func (mr *MockDefaultInterfaceInfoMockRecorder) DefaultDns6() *gomock.Call
DefaultDns6 indicates an expected call of DefaultDns6.
func (*MockDefaultInterfaceInfoMockRecorder) DefaultInterface4 ¶
func (mr *MockDefaultInterfaceInfoMockRecorder) DefaultInterface4() *gomock.Call
DefaultInterface4 indicates an expected call of DefaultInterface4.
func (*MockDefaultInterfaceInfoMockRecorder) DefaultInterface6 ¶
func (mr *MockDefaultInterfaceInfoMockRecorder) DefaultInterface6() *gomock.Call
DefaultInterface6 indicates an expected call of DefaultInterface6.
func (*MockDefaultInterfaceInfoMockRecorder) DefaultInterfaceName4 ¶
func (mr *MockDefaultInterfaceInfoMockRecorder) DefaultInterfaceName4() *gomock.Call
DefaultInterfaceName4 indicates an expected call of DefaultInterfaceName4.
func (*MockDefaultInterfaceInfoMockRecorder) DefaultInterfaceName6 ¶
func (mr *MockDefaultInterfaceInfoMockRecorder) DefaultInterfaceName6() *gomock.Call
DefaultInterfaceName6 indicates an expected call of DefaultInterfaceName6.
func (*MockDefaultInterfaceInfoMockRecorder) HasGlobalIPv6 ¶
func (mr *MockDefaultInterfaceInfoMockRecorder) HasGlobalIPv6() *gomock.Call
HasGlobalIPv6 indicates an expected call of HasGlobalIPv6.
func (*MockDefaultInterfaceInfoMockRecorder) Notify ¶
func (mr *MockDefaultInterfaceInfoMockRecorder) Notify() *gomock.Call
Notify indicates an expected call of Notify.
func (*MockDefaultInterfaceInfoMockRecorder) Register ¶
func (mr *MockDefaultInterfaceInfoMockRecorder) Register(observer interface{}) *gomock.Call
Register indicates an expected call of Register.
func (*MockDefaultInterfaceInfoMockRecorder) SupportIPv6 ¶
func (mr *MockDefaultInterfaceInfoMockRecorder) SupportIPv6() *gomock.Call
SupportIPv6 indicates an expected call of SupportIPv6.
func (*MockDefaultInterfaceInfoMockRecorder) Unregister ¶
func (mr *MockDefaultInterfaceInfoMockRecorder) Unregister(observer interface{}) *gomock.Call
Unregister indicates an expected call of Unregister.
type MockDialer ¶
type MockDialer struct {
// contains filtered or unexported fields
}
MockDialer is a mock of Dialer interface.
func NewMockDialer ¶
func NewMockDialer(ctrl *gomock.Controller) *MockDialer
NewMockDialer creates a new mock instance.
func (*MockDialer) Dial ¶
func (m *MockDialer) Dial(ctx context.Context, dst net.Destination) (net.Conn, error)
Dial mocks base method.
func (*MockDialer) EXPECT ¶
func (m *MockDialer) EXPECT() *MockDialerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDialerListener ¶
type MockDialerListener struct {
// contains filtered or unexported fields
}
MockDialerListener is a mock of DialerListener interface.
func NewMockDialerListener ¶
func NewMockDialerListener(ctrl *gomock.Controller) *MockDialerListener
NewMockDialerListener creates a new mock instance.
func (*MockDialerListener) Dial ¶
func (m *MockDialerListener) Dial(ctx context.Context, dst net.Destination) (net.Conn, error)
Dial mocks base method.
func (*MockDialerListener) EXPECT ¶
func (m *MockDialerListener) EXPECT() *MockDialerListenerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDialerListener) ListenPacket ¶
func (m *MockDialerListener) ListenPacket(ctx context.Context, network, address string) (net.PacketConn, error)
ListenPacket mocks base method.
type MockDialerListenerMockRecorder ¶
type MockDialerListenerMockRecorder struct {
// contains filtered or unexported fields
}
MockDialerListenerMockRecorder is the mock recorder for MockDialerListener.
func (*MockDialerListenerMockRecorder) Dial ¶
func (mr *MockDialerListenerMockRecorder) Dial(ctx, dst interface{}) *gomock.Call
Dial indicates an expected call of Dial.
func (*MockDialerListenerMockRecorder) ListenPacket ¶
func (mr *MockDialerListenerMockRecorder) ListenPacket(ctx, network, address interface{}) *gomock.Call
ListenPacket indicates an expected call of ListenPacket.
type MockDialerMockRecorder ¶
type MockDialerMockRecorder struct {
// contains filtered or unexported fields
}
MockDialerMockRecorder is the mock recorder for MockDialer.
func (*MockDialerMockRecorder) Dial ¶
func (mr *MockDialerMockRecorder) Dial(ctx, dst interface{}) *gomock.Call
Dial indicates an expected call of Dial.
type MockDispatcher ¶
type MockDispatcher struct {
// contains filtered or unexported fields
}
MockDispatcher is a mock of Dispatcher interface.
func NewMockDispatcher ¶
func NewMockDispatcher(ctrl *gomock.Controller) *MockDispatcher
NewMockDispatcher creates a new mock instance.
func (*MockDispatcher) Dispatch ¶
func (m *MockDispatcher) Dispatch(arg0 context.Context, arg1 net.Destination) (*pipe.Link, error)
Dispatch mocks base method.
func (*MockDispatcher) EXPECT ¶
func (m *MockDispatcher) EXPECT() *MockDispatcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDispatcherMockRecorder ¶
type MockDispatcherMockRecorder struct {
// contains filtered or unexported fields
}
MockDispatcherMockRecorder is the mock recorder for MockDispatcher.
func (*MockDispatcherMockRecorder) Dispatch ¶
func (mr *MockDispatcherMockRecorder) Dispatch(arg0, arg1 interface{}) *gomock.Call
Dispatch indicates an expected call of Dispatch.
type MockDomainSet ¶
type MockDomainSet struct {
// contains filtered or unexported fields
}
MockDomainSet is a mock of DomainSet interface.
func NewMockDomainSet ¶
func NewMockDomainSet(ctrl *gomock.Controller) *MockDomainSet
NewMockDomainSet creates a new mock instance.
func (*MockDomainSet) EXPECT ¶
func (m *MockDomainSet) EXPECT() *MockDomainSetMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDomainSet) Match ¶
func (m *MockDomainSet) Match(domain string) bool
Match mocks base method.
type MockDomainSetMockRecorder ¶
type MockDomainSetMockRecorder struct {
// contains filtered or unexported fields
}
MockDomainSetMockRecorder is the mock recorder for MockDomainSet.
func (*MockDomainSetMockRecorder) Match ¶
func (mr *MockDomainSetMockRecorder) Match(domain interface{}) *gomock.Call
Match indicates an expected call of Match.
type MockFakeDnsPool ¶
type MockFakeDnsPool struct {
// contains filtered or unexported fields
}
MockFakeDnsPool is a mock of FakeDnsPool interface.
func NewMockFakeDnsPool ¶
func NewMockFakeDnsPool(ctrl *gomock.Controller) *MockFakeDnsPool
NewMockFakeDnsPool creates a new mock instance.
func (*MockFakeDnsPool) EXPECT ¶
func (m *MockFakeDnsPool) EXPECT() *MockFakeDnsPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFakeDnsPool) GetDomainFromFakeDNS ¶
func (m *MockFakeDnsPool) GetDomainFromFakeDNS(ip net.Address) string
GetDomainFromFakeDNS mocks base method.
func (*MockFakeDnsPool) IsIPInIPPool ¶
func (m *MockFakeDnsPool) IsIPInIPPool(ip net.Address) bool
IsIPInIPPool mocks base method.
type MockFakeDnsPoolMockRecorder ¶
type MockFakeDnsPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockFakeDnsPoolMockRecorder is the mock recorder for MockFakeDnsPool.
func (*MockFakeDnsPoolMockRecorder) GetDomainFromFakeDNS ¶
func (mr *MockFakeDnsPoolMockRecorder) GetDomainFromFakeDNS(ip interface{}) *gomock.Call
GetDomainFromFakeDNS indicates an expected call of GetDomainFromFakeDNS.
func (*MockFakeDnsPoolMockRecorder) IsIPInIPPool ¶
func (mr *MockFakeDnsPoolMockRecorder) IsIPInIPPool(ip interface{}) *gomock.Call
IsIPInIPPool indicates an expected call of IsIPInIPPool.
type MockFlowHandler ¶
type MockFlowHandler struct {
// contains filtered or unexported fields
}
MockFlowHandler is a mock of FlowHandler interface.
func NewMockFlowHandler ¶
func NewMockFlowHandler(ctrl *gomock.Controller) *MockFlowHandler
NewMockFlowHandler creates a new mock instance.
func (*MockFlowHandler) EXPECT ¶
func (m *MockFlowHandler) EXPECT() *MockFlowHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFlowHandler) HandleFlow ¶
func (m *MockFlowHandler) HandleFlow(ctx context.Context, info *session.Info, rw buf.ReaderWriter) error
HandleFlow mocks base method.
type MockFlowHandlerMockRecorder ¶
type MockFlowHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockFlowHandlerMockRecorder is the mock recorder for MockFlowHandler.
func (*MockFlowHandlerMockRecorder) HandleFlow ¶
func (mr *MockFlowHandlerMockRecorder) HandleFlow(ctx, info, rw interface{}) *gomock.Call
HandleFlow indicates an expected call of HandleFlow.
type MockGeoHelper ¶
type MockGeoHelper struct {
// contains filtered or unexported fields
}
MockGeoHelper is a mock of GeoHelper interface.
func NewMockGeoHelper ¶
func NewMockGeoHelper(ctrl *gomock.Controller) *MockGeoHelper
NewMockGeoHelper creates a new mock instance.
func (*MockGeoHelper) EXPECT ¶
func (m *MockGeoHelper) EXPECT() *MockGeoHelperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGeoHelper) MatchAppId ¶
func (m *MockGeoHelper) MatchAppId(appId, tag string) bool
MatchAppId mocks base method.
func (*MockGeoHelper) MatchDomain ¶
func (m *MockGeoHelper) MatchDomain(domain, tag string) bool
MatchDomain mocks base method.
type MockGeoHelperMockRecorder ¶
type MockGeoHelperMockRecorder struct {
// contains filtered or unexported fields
}
MockGeoHelperMockRecorder is the mock recorder for MockGeoHelper.
func (*MockGeoHelperMockRecorder) MatchAppId ¶
func (mr *MockGeoHelperMockRecorder) MatchAppId(appId, tag interface{}) *gomock.Call
MatchAppId indicates an expected call of MatchAppId.
func (*MockGeoHelperMockRecorder) MatchDomain ¶
func (mr *MockGeoHelperMockRecorder) MatchDomain(domain, tag interface{}) *gomock.Call
MatchDomain indicates an expected call of MatchDomain.
func (*MockGeoHelperMockRecorder) MatchIP ¶
func (mr *MockGeoHelperMockRecorder) MatchIP(ip, tag interface{}) *gomock.Call
MatchIP indicates an expected call of MatchIP.
type MockHandler ¶
type MockHandler struct {
// contains filtered or unexported fields
}
MockHandler is a mock of Handler interface.
func NewMockHandler ¶
func NewMockHandler(ctrl *gomock.Controller) *MockHandler
NewMockHandler creates a new mock instance.
func (*MockHandler) EXPECT ¶
func (m *MockHandler) EXPECT() *MockHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHandler) HandleFlow ¶
func (m *MockHandler) HandleFlow(ctx context.Context, info *session.Info, rw buf.ReaderWriter) error
HandleFlow mocks base method.
func (*MockHandler) HandlePacketConn ¶
func (m *MockHandler) HandlePacketConn(ctx context.Context, info *session.Info, p udp.PacketReaderWriter) error
HandlePacketConn mocks base method.
type MockHandlerErrorObserver ¶
type MockHandlerErrorObserver struct {
// contains filtered or unexported fields
}
MockHandlerErrorObserver is a mock of HandlerErrorObserver interface.
func NewMockHandlerErrorObserver ¶
func NewMockHandlerErrorObserver(ctrl *gomock.Controller) *MockHandlerErrorObserver
NewMockHandlerErrorObserver creates a new mock instance.
func (*MockHandlerErrorObserver) EXPECT ¶
func (m *MockHandlerErrorObserver) EXPECT() *MockHandlerErrorObserverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHandlerErrorObserver) OnHandlerError ¶
func (m *MockHandlerErrorObserver) OnHandlerError(tag string, err error)
OnHandlerError mocks base method.
type MockHandlerErrorObserverMockRecorder ¶
type MockHandlerErrorObserverMockRecorder struct {
// contains filtered or unexported fields
}
MockHandlerErrorObserverMockRecorder is the mock recorder for MockHandlerErrorObserver.
func (*MockHandlerErrorObserverMockRecorder) OnHandlerError ¶
func (mr *MockHandlerErrorObserverMockRecorder) OnHandlerError(tag, err interface{}) *gomock.Call
OnHandlerError indicates an expected call of OnHandlerError.
type MockHandlerMockRecorder ¶
type MockHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockHandlerMockRecorder is the mock recorder for MockHandler.
func (*MockHandlerMockRecorder) HandleFlow ¶
func (mr *MockHandlerMockRecorder) HandleFlow(ctx, info, rw interface{}) *gomock.Call
HandleFlow indicates an expected call of HandleFlow.
func (*MockHandlerMockRecorder) HandlePacketConn ¶
func (mr *MockHandlerMockRecorder) HandlePacketConn(ctx, info, p interface{}) *gomock.Call
HandlePacketConn indicates an expected call of HandlePacketConn.
type MockHandlerWith6Info ¶
type MockHandlerWith6Info struct {
// contains filtered or unexported fields
}
MockHandlerWith6Info is a mock of HandlerWith6Info interface.
func NewMockHandlerWith6Info ¶
func NewMockHandlerWith6Info(ctrl *gomock.Controller) *MockHandlerWith6Info
NewMockHandlerWith6Info creates a new mock instance.
func (*MockHandlerWith6Info) EXPECT ¶
func (m *MockHandlerWith6Info) EXPECT() *MockHandlerWith6InfoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHandlerWith6Info) HandleFlow ¶
func (m *MockHandlerWith6Info) HandleFlow(ctx context.Context, info *session.Info, rw buf.ReaderWriter) error
HandleFlow mocks base method.
func (*MockHandlerWith6Info) HandlePacketConn ¶
func (m *MockHandlerWith6Info) HandlePacketConn(ctx context.Context, info *session.Info, p udp.PacketReaderWriter) error
HandlePacketConn mocks base method.
func (*MockHandlerWith6Info) Support6 ¶
func (m *MockHandlerWith6Info) Support6() bool
Support6 mocks base method.
func (*MockHandlerWith6Info) Tag ¶
func (m *MockHandlerWith6Info) Tag() string
Tag mocks base method.
type MockHandlerWith6InfoMockRecorder ¶
type MockHandlerWith6InfoMockRecorder struct {
// contains filtered or unexported fields
}
MockHandlerWith6InfoMockRecorder is the mock recorder for MockHandlerWith6Info.
func (*MockHandlerWith6InfoMockRecorder) HandleFlow ¶
func (mr *MockHandlerWith6InfoMockRecorder) HandleFlow(ctx, info, rw interface{}) *gomock.Call
HandleFlow indicates an expected call of HandleFlow.
func (*MockHandlerWith6InfoMockRecorder) HandlePacketConn ¶
func (mr *MockHandlerWith6InfoMockRecorder) HandlePacketConn(ctx, info, p interface{}) *gomock.Call
HandlePacketConn indicates an expected call of HandlePacketConn.
func (*MockHandlerWith6InfoMockRecorder) Support6 ¶
func (mr *MockHandlerWith6InfoMockRecorder) Support6() *gomock.Call
Support6 indicates an expected call of Support6.
func (*MockHandlerWith6InfoMockRecorder) Tag ¶
func (mr *MockHandlerWith6InfoMockRecorder) Tag() *gomock.Call
Tag indicates an expected call of Tag.
type MockIPResolver ¶
type MockIPResolver struct {
// contains filtered or unexported fields
}
MockIPResolver is a mock of IPResolver interface.
func NewMockIPResolver ¶
func NewMockIPResolver(ctrl *gomock.Controller) *MockIPResolver
NewMockIPResolver creates a new mock instance.
func (*MockIPResolver) EXPECT ¶
func (m *MockIPResolver) EXPECT() *MockIPResolverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIPResolver) LookupIPv4 ¶
LookupIPv4 mocks base method.
func (*MockIPResolver) LookupIPv6 ¶
LookupIPv6 mocks base method.
type MockIPResolverMockRecorder ¶
type MockIPResolverMockRecorder struct {
// contains filtered or unexported fields
}
MockIPResolverMockRecorder is the mock recorder for MockIPResolver.
func (*MockIPResolverMockRecorder) LookupIP ¶
func (mr *MockIPResolverMockRecorder) LookupIP(ctx, domain interface{}) *gomock.Call
LookupIP indicates an expected call of LookupIP.
func (*MockIPResolverMockRecorder) LookupIPv4 ¶
func (mr *MockIPResolverMockRecorder) LookupIPv4(ctx, domain interface{}) *gomock.Call
LookupIPv4 indicates an expected call of LookupIPv4.
func (*MockIPResolverMockRecorder) LookupIPv6 ¶
func (mr *MockIPResolverMockRecorder) LookupIPv6(ctx, domain interface{}) *gomock.Call
LookupIPv6 indicates an expected call of LookupIPv6.
type MockIPSet ¶
type MockIPSet struct {
// contains filtered or unexported fields
}
MockIPSet is a mock of IPSet interface.
func NewMockIPSet ¶
func NewMockIPSet(ctrl *gomock.Controller) *MockIPSet
NewMockIPSet creates a new mock instance.
func (*MockIPSet) EXPECT ¶
func (m *MockIPSet) EXPECT() *MockIPSetMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIPSetMockRecorder ¶
type MockIPSetMockRecorder struct {
// contains filtered or unexported fields
}
MockIPSetMockRecorder is the mock recorder for MockIPSet.
func (*MockIPSetMockRecorder) Match ¶
func (mr *MockIPSetMockRecorder) Match(ip interface{}) *gomock.Call
Match indicates an expected call of Match.
type MockIPv6SupportChangeObserver ¶
type MockIPv6SupportChangeObserver struct {
// contains filtered or unexported fields
}
MockIPv6SupportChangeObserver is a mock of IPv6SupportChangeObserver interface.
func NewMockIPv6SupportChangeObserver ¶
func NewMockIPv6SupportChangeObserver(ctrl *gomock.Controller) *MockIPv6SupportChangeObserver
NewMockIPv6SupportChangeObserver creates a new mock instance.
func (*MockIPv6SupportChangeObserver) EXPECT ¶
func (m *MockIPv6SupportChangeObserver) EXPECT() *MockIPv6SupportChangeObserverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIPv6SupportChangeObserver) OnIPv6SupportChanged ¶
func (m *MockIPv6SupportChangeObserver) OnIPv6SupportChanged()
OnIPv6SupportChanged mocks base method.
type MockIPv6SupportChangeObserverMockRecorder ¶
type MockIPv6SupportChangeObserverMockRecorder struct {
// contains filtered or unexported fields
}
MockIPv6SupportChangeObserverMockRecorder is the mock recorder for MockIPv6SupportChangeObserver.
func (*MockIPv6SupportChangeObserverMockRecorder) OnIPv6SupportChanged ¶
func (mr *MockIPv6SupportChangeObserverMockRecorder) OnIPv6SupportChanged() *gomock.Call
OnIPv6SupportChanged indicates an expected call of OnIPv6SupportChanged.
type MockIPv6SupportChangeSubject ¶
type MockIPv6SupportChangeSubject struct {
// contains filtered or unexported fields
}
MockIPv6SupportChangeSubject is a mock of IPv6SupportChangeSubject interface.
func NewMockIPv6SupportChangeSubject ¶
func NewMockIPv6SupportChangeSubject(ctrl *gomock.Controller) *MockIPv6SupportChangeSubject
NewMockIPv6SupportChangeSubject creates a new mock instance.
func (*MockIPv6SupportChangeSubject) EXPECT ¶
func (m *MockIPv6SupportChangeSubject) EXPECT() *MockIPv6SupportChangeSubjectMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIPv6SupportChangeSubject) Notify ¶
func (m *MockIPv6SupportChangeSubject) Notify()
Notify mocks base method.
func (*MockIPv6SupportChangeSubject) Register ¶
func (m *MockIPv6SupportChangeSubject) Register(observer i.IPv6SupportChangeObserver)
Register mocks base method.
func (*MockIPv6SupportChangeSubject) Unregister ¶
func (m *MockIPv6SupportChangeSubject) Unregister(observer i.IPv6SupportChangeObserver)
Unregister mocks base method.
type MockIPv6SupportChangeSubjectMockRecorder ¶
type MockIPv6SupportChangeSubjectMockRecorder struct {
// contains filtered or unexported fields
}
MockIPv6SupportChangeSubjectMockRecorder is the mock recorder for MockIPv6SupportChangeSubject.
func (*MockIPv6SupportChangeSubjectMockRecorder) Notify ¶
func (mr *MockIPv6SupportChangeSubjectMockRecorder) Notify() *gomock.Call
Notify indicates an expected call of Notify.
func (*MockIPv6SupportChangeSubjectMockRecorder) Register ¶
func (mr *MockIPv6SupportChangeSubjectMockRecorder) Register(observer interface{}) *gomock.Call
Register indicates an expected call of Register.
func (*MockIPv6SupportChangeSubjectMockRecorder) Unregister ¶
func (mr *MockIPv6SupportChangeSubjectMockRecorder) Unregister(observer interface{}) *gomock.Call
Unregister indicates an expected call of Unregister.
type MockInterfaceMonitor ¶
type MockInterfaceMonitor struct {
// contains filtered or unexported fields
}
MockInterfaceMonitor is a mock of InterfaceMonitor interface.
func NewMockInterfaceMonitor ¶
func NewMockInterfaceMonitor(ctrl *gomock.Controller) *MockInterfaceMonitor
NewMockInterfaceMonitor creates a new mock instance.
func (*MockInterfaceMonitor) DefaultDnsServerAddr ¶
func (m *MockInterfaceMonitor) DefaultDnsServerAddr() []netip.Addr
DefaultDnsServerAddr mocks base method.
func (*MockInterfaceMonitor) DefaultInterfaceName4 ¶
func (m *MockInterfaceMonitor) DefaultInterfaceName4() string
DefaultInterfaceName4 mocks base method.
func (*MockInterfaceMonitor) DefaultInterfaceName6 ¶
func (m *MockInterfaceMonitor) DefaultInterfaceName6() string
DefaultInterfaceName6 mocks base method.
func (*MockInterfaceMonitor) EXPECT ¶
func (m *MockInterfaceMonitor) EXPECT() *MockInterfaceMonitorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterfaceMonitor) TunEnabled ¶
func (m *MockInterfaceMonitor) TunEnabled() bool
TunEnabled mocks base method.
type MockInterfaceMonitorMockRecorder ¶
type MockInterfaceMonitorMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMonitorMockRecorder is the mock recorder for MockInterfaceMonitor.
func (*MockInterfaceMonitorMockRecorder) DefaultDnsServerAddr ¶
func (mr *MockInterfaceMonitorMockRecorder) DefaultDnsServerAddr() *gomock.Call
DefaultDnsServerAddr indicates an expected call of DefaultDnsServerAddr.
func (*MockInterfaceMonitorMockRecorder) DefaultInterfaceName4 ¶
func (mr *MockInterfaceMonitorMockRecorder) DefaultInterfaceName4() *gomock.Call
DefaultInterfaceName4 indicates an expected call of DefaultInterfaceName4.
func (*MockInterfaceMonitorMockRecorder) DefaultInterfaceName6 ¶
func (mr *MockInterfaceMonitorMockRecorder) DefaultInterfaceName6() *gomock.Call
DefaultInterfaceName6 indicates an expected call of DefaultInterfaceName6.
func (*MockInterfaceMonitorMockRecorder) TunEnabled ¶
func (mr *MockInterfaceMonitorMockRecorder) TunEnabled() *gomock.Call
TunEnabled indicates an expected call of TunEnabled.
type MockIpToDomain ¶
type MockIpToDomain struct {
// contains filtered or unexported fields
}
MockIpToDomain is a mock of IpToDomain interface.
func NewMockIpToDomain ¶
func NewMockIpToDomain(ctrl *gomock.Controller) *MockIpToDomain
NewMockIpToDomain creates a new mock instance.
func (*MockIpToDomain) EXPECT ¶
func (m *MockIpToDomain) EXPECT() *MockIpToDomainMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIpToDomainMockRecorder ¶
type MockIpToDomainMockRecorder struct {
// contains filtered or unexported fields
}
MockIpToDomainMockRecorder is the mock recorder for MockIpToDomain.
func (*MockIpToDomainMockRecorder) GetDomain ¶
func (mr *MockIpToDomainMockRecorder) GetDomain(ip interface{}) *gomock.Call
GetDomain indicates an expected call of GetDomain.
type MockListener ¶
type MockListener struct {
// contains filtered or unexported fields
}
MockListener is a mock of Listener interface.
func NewMockListener ¶
func NewMockListener(ctrl *gomock.Controller) *MockListener
NewMockListener creates a new mock instance.
func (*MockListener) EXPECT ¶
func (m *MockListener) EXPECT() *MockListenerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockListenerMockRecorder ¶
type MockListenerMockRecorder struct {
// contains filtered or unexported fields
}
MockListenerMockRecorder is the mock recorder for MockListener.
func (*MockListenerMockRecorder) Listen ¶
func (mr *MockListenerMockRecorder) Listen(ctx, addr interface{}) *gomock.Call
Listen indicates an expected call of Listen.
type MockMyConn ¶
type MockMyConn struct {
// contains filtered or unexported fields
}
MockMyConn is a mock of MyConn interface.
func NewMockMyConn ¶
func NewMockMyConn(ctrl *gomock.Controller) *MockMyConn
NewMockMyConn creates a new mock instance.
func (*MockMyConn) CloseWrite ¶
func (m *MockMyConn) CloseWrite() error
CloseWrite mocks base method.
func (*MockMyConn) EXPECT ¶
func (m *MockMyConn) EXPECT() *MockMyConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMyConn) ReadMultiBuffer ¶
func (m *MockMyConn) ReadMultiBuffer() (buf.MultiBuffer, error)
ReadMultiBuffer mocks base method.
func (*MockMyConn) WriteMultiBuffer ¶
func (m *MockMyConn) WriteMultiBuffer(arg0 buf.MultiBuffer) error
WriteMultiBuffer mocks base method.
type MockMyConnMockRecorder ¶
type MockMyConnMockRecorder struct {
// contains filtered or unexported fields
}
MockMyConnMockRecorder is the mock recorder for MockMyConn.
func (*MockMyConnMockRecorder) Close ¶
func (mr *MockMyConnMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockMyConnMockRecorder) CloseWrite ¶
func (mr *MockMyConnMockRecorder) CloseWrite() *gomock.Call
CloseWrite indicates an expected call of CloseWrite.
func (*MockMyConnMockRecorder) ReadMultiBuffer ¶
func (mr *MockMyConnMockRecorder) ReadMultiBuffer() *gomock.Call
ReadMultiBuffer indicates an expected call of ReadMultiBuffer.
func (*MockMyConnMockRecorder) WriteMultiBuffer ¶
func (mr *MockMyConnMockRecorder) WriteMultiBuffer(arg0 interface{}) *gomock.Call
WriteMultiBuffer indicates an expected call of WriteMultiBuffer.
type MockMyPacketConn ¶
type MockMyPacketConn struct {
// contains filtered or unexported fields
}
MockMyPacketConn is a mock of MyPacketConn interface.
func NewMockMyPacketConn ¶
func NewMockMyPacketConn(ctrl *gomock.Controller) *MockMyPacketConn
NewMockMyPacketConn creates a new mock instance.
func (*MockMyPacketConn) EXPECT ¶
func (m *MockMyPacketConn) EXPECT() *MockMyPacketConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMyPacketConn) ReadPacket ¶
func (m *MockMyPacketConn) ReadPacket() (*udp.Packet, error)
ReadPacket mocks base method.
func (*MockMyPacketConn) WritePacket ¶
func (m *MockMyPacketConn) WritePacket(p *udp.Packet) error
WritePacket mocks base method.
type MockMyPacketConnMockRecorder ¶
type MockMyPacketConnMockRecorder struct {
// contains filtered or unexported fields
}
MockMyPacketConnMockRecorder is the mock recorder for MockMyPacketConn.
func (*MockMyPacketConnMockRecorder) Close ¶
func (mr *MockMyPacketConnMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockMyPacketConnMockRecorder) ReadPacket ¶
func (mr *MockMyPacketConnMockRecorder) ReadPacket() *gomock.Call
ReadPacket indicates an expected call of ReadPacket.
func (*MockMyPacketConnMockRecorder) WritePacket ¶
func (mr *MockMyPacketConnMockRecorder) WritePacket(p interface{}) *gomock.Call
WritePacket indicates an expected call of WritePacket.
type MockNamedHandler ¶
type MockNamedHandler struct {
// contains filtered or unexported fields
}
MockNamedHandler is a mock of NamedHandler interface.
func NewMockNamedHandler ¶
func NewMockNamedHandler(ctrl *gomock.Controller) *MockNamedHandler
NewMockNamedHandler creates a new mock instance.
func (*MockNamedHandler) EXPECT ¶
func (m *MockNamedHandler) EXPECT() *MockNamedHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNamedHandler) HandleFlow ¶
func (m *MockNamedHandler) HandleFlow(ctx context.Context, info *session.Info, rw buf.ReaderWriter) error
HandleFlow mocks base method.
func (*MockNamedHandler) HandlePacketConn ¶
func (m *MockNamedHandler) HandlePacketConn(ctx context.Context, info *session.Info, p udp.PacketReaderWriter) error
HandlePacketConn mocks base method.
type MockNamedHandlerMockRecorder ¶
type MockNamedHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockNamedHandlerMockRecorder is the mock recorder for MockNamedHandler.
func (*MockNamedHandlerMockRecorder) HandleFlow ¶
func (mr *MockNamedHandlerMockRecorder) HandleFlow(ctx, info, rw interface{}) *gomock.Call
HandleFlow indicates an expected call of HandleFlow.
func (*MockNamedHandlerMockRecorder) HandlePacketConn ¶
func (mr *MockNamedHandlerMockRecorder) HandlePacketConn(ctx, info, p interface{}) *gomock.Call
HandlePacketConn indicates an expected call of HandlePacketConn.
func (*MockNamedHandlerMockRecorder) Tag ¶
func (mr *MockNamedHandlerMockRecorder) Tag() *gomock.Call
Tag indicates an expected call of Tag.
type MockOutboundManager ¶
type MockOutboundManager struct {
// contains filtered or unexported fields
}
MockOutboundManager is a mock of OutboundManager interface.
func NewMockOutboundManager ¶
func NewMockOutboundManager(ctrl *gomock.Controller) *MockOutboundManager
NewMockOutboundManager creates a new mock instance.
func (*MockOutboundManager) EXPECT ¶
func (m *MockOutboundManager) EXPECT() *MockOutboundManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOutboundManager) GetAllHandlers ¶
func (m *MockOutboundManager) GetAllHandlers() []i.Outbound
GetAllHandlers mocks base method.
func (*MockOutboundManager) GetHandler ¶
func (m *MockOutboundManager) GetHandler(tag string) i.Outbound
GetHandler mocks base method.
type MockOutboundManagerMockRecorder ¶
type MockOutboundManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockOutboundManagerMockRecorder is the mock recorder for MockOutboundManager.
func (*MockOutboundManagerMockRecorder) GetAllHandlers ¶
func (mr *MockOutboundManagerMockRecorder) GetAllHandlers() *gomock.Call
GetAllHandlers indicates an expected call of GetAllHandlers.
func (*MockOutboundManagerMockRecorder) GetHandler ¶
func (mr *MockOutboundManagerMockRecorder) GetHandler(tag interface{}) *gomock.Call
GetHandler indicates an expected call of GetHandler.
type MockPacketHandler ¶
type MockPacketHandler struct {
// contains filtered or unexported fields
}
MockPacketHandler is a mock of PacketHandler interface.
func NewMockPacketHandler ¶
func NewMockPacketHandler(ctrl *gomock.Controller) *MockPacketHandler
NewMockPacketHandler creates a new mock instance.
func (*MockPacketHandler) EXPECT ¶
func (m *MockPacketHandler) EXPECT() *MockPacketHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPacketHandler) HandlePacketConn ¶
func (m *MockPacketHandler) HandlePacketConn(ctx context.Context, info *session.Info, p udp.PacketReaderWriter) error
HandlePacketConn mocks base method.
type MockPacketHandlerMockRecorder ¶
type MockPacketHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockPacketHandlerMockRecorder is the mock recorder for MockPacketHandler.
func (*MockPacketHandlerMockRecorder) HandlePacketConn ¶
func (mr *MockPacketHandlerMockRecorder) HandlePacketConn(ctx, info, p interface{}) *gomock.Call
HandlePacketConn indicates an expected call of HandlePacketConn.
type MockPacketListener ¶
type MockPacketListener struct {
// contains filtered or unexported fields
}
MockPacketListener is a mock of PacketListener interface.
func NewMockPacketListener ¶
func NewMockPacketListener(ctrl *gomock.Controller) *MockPacketListener
NewMockPacketListener creates a new mock instance.
func (*MockPacketListener) EXPECT ¶
func (m *MockPacketListener) EXPECT() *MockPacketListenerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPacketListener) ListenPacket ¶
func (m *MockPacketListener) ListenPacket(ctx context.Context, network, address string) (net.PacketConn, error)
ListenPacket mocks base method.
type MockPacketListenerMockRecorder ¶
type MockPacketListenerMockRecorder struct {
// contains filtered or unexported fields
}
MockPacketListenerMockRecorder is the mock recorder for MockPacketListener.
func (*MockPacketListenerMockRecorder) ListenPacket ¶
func (mr *MockPacketListenerMockRecorder) ListenPacket(ctx, network, address interface{}) *gomock.Call
ListenPacket indicates an expected call of ListenPacket.
type MockPortSelector ¶
type MockPortSelector struct {
// contains filtered or unexported fields
}
MockPortSelector is a mock of PortSelector interface.
func NewMockPortSelector ¶
func NewMockPortSelector(ctrl *gomock.Controller) *MockPortSelector
NewMockPortSelector creates a new mock instance.
func (*MockPortSelector) EXPECT ¶
func (m *MockPortSelector) EXPECT() *MockPortSelectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPortSelector) SelectPort ¶
func (m *MockPortSelector) SelectPort() (uint16, error)
SelectPort mocks base method.
type MockPortSelectorMockRecorder ¶
type MockPortSelectorMockRecorder struct {
// contains filtered or unexported fields
}
MockPortSelectorMockRecorder is the mock recorder for MockPortSelector.
func (*MockPortSelectorMockRecorder) SelectPort ¶
func (mr *MockPortSelectorMockRecorder) SelectPort() *gomock.Call
SelectPort indicates an expected call of SelectPort.
type MockProxyClient ¶
type MockProxyClient struct {
// contains filtered or unexported fields
}
MockProxyClient is a mock of ProxyClient interface.
func NewMockProxyClient ¶
func NewMockProxyClient(ctrl *gomock.Controller) *MockProxyClient
NewMockProxyClient creates a new mock instance.
func (*MockProxyClient) EXPECT ¶
func (m *MockProxyClient) EXPECT() *MockProxyClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProxyClient) HandleFlow ¶
func (m *MockProxyClient) HandleFlow(ctx context.Context, info *session.Info, rw buf.ReaderWriter, dialer i.Dialer) error
HandleFlow mocks base method.
func (*MockProxyClient) HandlePacketConn ¶
func (m *MockProxyClient) HandlePacketConn(ctx context.Context, info *session.Info, pc udp.PacketReaderWriter, dialer i.Dialer) error
HandlePacketConn mocks base method.
type MockProxyClientMockRecorder ¶
type MockProxyClientMockRecorder struct {
// contains filtered or unexported fields
}
MockProxyClientMockRecorder is the mock recorder for MockProxyClient.
func (*MockProxyClientMockRecorder) HandleFlow ¶
func (mr *MockProxyClientMockRecorder) HandleFlow(ctx, info, rw, dialer interface{}) *gomock.Call
HandleFlow indicates an expected call of HandleFlow.
func (*MockProxyClientMockRecorder) HandlePacketConn ¶
func (mr *MockProxyClientMockRecorder) HandlePacketConn(ctx, info, pc, dialer interface{}) *gomock.Call
HandlePacketConn indicates an expected call of HandlePacketConn.
type MockProxyClientProcessor ¶
type MockProxyClientProcessor struct {
// contains filtered or unexported fields
}
MockProxyClientProcessor is a mock of ProxyClientProcessor interface.
func NewMockProxyClientProcessor ¶
func NewMockProxyClientProcessor(ctrl *gomock.Controller) *MockProxyClientProcessor
NewMockProxyClientProcessor creates a new mock instance.
func (*MockProxyClientProcessor) EXPECT ¶
func (m *MockProxyClientProcessor) EXPECT() *MockProxyClientProcessorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProxyClientProcessor) ProcessConn ¶
func (m *MockProxyClientProcessor) ProcessConn(ctx context.Context, conn net.Conn) (net.Conn, error)
ProcessConn mocks base method.
func (*MockProxyClientProcessor) ProcessPacketConn ¶
func (m *MockProxyClientProcessor) ProcessPacketConn(ctx context.Context, conn net.PacketConn) (net.PacketConn, error)
ProcessPacketConn mocks base method.
type MockProxyClientProcessorMockRecorder ¶
type MockProxyClientProcessorMockRecorder struct {
// contains filtered or unexported fields
}
MockProxyClientProcessorMockRecorder is the mock recorder for MockProxyClientProcessor.
func (*MockProxyClientProcessorMockRecorder) ProcessConn ¶
func (mr *MockProxyClientProcessorMockRecorder) ProcessConn(ctx, conn interface{}) *gomock.Call
ProcessConn indicates an expected call of ProcessConn.
func (*MockProxyClientProcessorMockRecorder) ProcessPacketConn ¶
func (mr *MockProxyClientProcessorMockRecorder) ProcessPacketConn(ctx, conn interface{}) *gomock.Call
ProcessPacketConn indicates an expected call of ProcessPacketConn.
type MockProxyPacketConn ¶
type MockProxyPacketConn struct {
// contains filtered or unexported fields
}
MockProxyPacketConn is a mock of ProxyPacketConn interface.
func NewMockProxyPacketConn ¶
func NewMockProxyPacketConn(ctrl *gomock.Controller) *MockProxyPacketConn
NewMockProxyPacketConn creates a new mock instance.
func (*MockProxyPacketConn) EXPECT ¶
func (m *MockProxyPacketConn) EXPECT() *MockProxyPacketConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProxyPacketConn) ReadPacket ¶
func (m *MockProxyPacketConn) ReadPacket() (*udp.Packet, error)
ReadPacket mocks base method.
func (*MockProxyPacketConn) User ¶
func (m *MockProxyPacketConn) User() i.User
User mocks base method.
func (*MockProxyPacketConn) WritePacket ¶
func (m *MockProxyPacketConn) WritePacket(p *udp.Packet) error
WritePacket mocks base method.
type MockProxyPacketConnMockRecorder ¶
type MockProxyPacketConnMockRecorder struct {
// contains filtered or unexported fields
}
MockProxyPacketConnMockRecorder is the mock recorder for MockProxyPacketConn.
func (*MockProxyPacketConnMockRecorder) ReadPacket ¶
func (mr *MockProxyPacketConnMockRecorder) ReadPacket() *gomock.Call
ReadPacket indicates an expected call of ReadPacket.
func (*MockProxyPacketConnMockRecorder) User ¶
func (mr *MockProxyPacketConnMockRecorder) User() *gomock.Call
User indicates an expected call of User.
func (*MockProxyPacketConnMockRecorder) WritePacket ¶
func (mr *MockProxyPacketConnMockRecorder) WritePacket(p interface{}) *gomock.Call
WritePacket indicates an expected call of WritePacket.
type MockProxyServerProcessor ¶
type MockProxyServerProcessor struct {
// contains filtered or unexported fields
}
MockProxyServerProcessor is a mock of ProxyServerProcessor interface.
func NewMockProxyServerProcessor ¶
func NewMockProxyServerProcessor(ctrl *gomock.Controller) *MockProxyServerProcessor
NewMockProxyServerProcessor creates a new mock instance.
func (*MockProxyServerProcessor) EXPECT ¶
func (m *MockProxyServerProcessor) EXPECT() *MockProxyServerProcessorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProxyServerProcessor) ProcessConn ¶
func (m *MockProxyServerProcessor) ProcessConn(ctx context.Context, conn net.Conn) (chan interface{}, error)
ProcessConn mocks base method.
type MockProxyServerProcessorMockRecorder ¶
type MockProxyServerProcessorMockRecorder struct {
// contains filtered or unexported fields
}
MockProxyServerProcessorMockRecorder is the mock recorder for MockProxyServerProcessor.
func (*MockProxyServerProcessorMockRecorder) ProcessConn ¶
func (mr *MockProxyServerProcessorMockRecorder) ProcessConn(ctx, conn interface{}) *gomock.Call
ProcessConn indicates an expected call of ProcessConn.
type MockRouter ¶
type MockRouter struct {
// contains filtered or unexported fields
}
MockRouter is a mock of Router interface.
func NewMockRouter ¶
func NewMockRouter(ctrl *gomock.Controller) *MockRouter
NewMockRouter creates a new mock instance.
func (*MockRouter) EXPECT ¶
func (m *MockRouter) EXPECT() *MockRouterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRouter) PickHandler ¶
PickHandler mocks base method.
type MockRouterMockRecorder ¶
type MockRouterMockRecorder struct {
// contains filtered or unexported fields
}
MockRouterMockRecorder is the mock recorder for MockRouter.
func (*MockRouterMockRecorder) PickHandler ¶
func (mr *MockRouterMockRecorder) PickHandler(ctx, si interface{}) *gomock.Call
PickHandler indicates an expected call of PickHandler.
type MockRunnableDialer ¶
type MockRunnableDialer struct {
// contains filtered or unexported fields
}
MockRunnableDialer is a mock of RunnableDialer interface.
func NewMockRunnableDialer ¶
func NewMockRunnableDialer(ctrl *gomock.Controller) *MockRunnableDialer
NewMockRunnableDialer creates a new mock instance.
func (*MockRunnableDialer) Close ¶
func (m *MockRunnableDialer) Close() error
Close mocks base method.
func (*MockRunnableDialer) Dial ¶
func (m *MockRunnableDialer) Dial(ctx context.Context, dst net.Destination) (net.Conn, error)
Dial mocks base method.
func (*MockRunnableDialer) EXPECT ¶
func (m *MockRunnableDialer) EXPECT() *MockRunnableDialerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRunnableDialer) Start ¶
func (m *MockRunnableDialer) Start() error
Start mocks base method.
type MockRunnableDialerMockRecorder ¶
type MockRunnableDialerMockRecorder struct {
// contains filtered or unexported fields
}
MockRunnableDialerMockRecorder is the mock recorder for MockRunnableDialer.
func (*MockRunnableDialerMockRecorder) Close ¶
func (mr *MockRunnableDialerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockRunnableDialerMockRecorder) Dial ¶
func (mr *MockRunnableDialerMockRecorder) Dial(ctx, dst interface{}) *gomock.Call
Dial indicates an expected call of Dial.
func (*MockRunnableDialerMockRecorder) Start ¶
func (mr *MockRunnableDialerMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
type MockStatsSetting ¶
type MockStatsSetting struct {
// contains filtered or unexported fields
}
MockStatsSetting is a mock of StatsSetting interface.
func NewMockStatsSetting ¶
func NewMockStatsSetting(ctrl *gomock.Controller) *MockStatsSetting
NewMockStatsSetting creates a new mock instance.
func (*MockStatsSetting) CalculateInboundLinkStats ¶
func (m *MockStatsSetting) CalculateInboundLinkStats() bool
CalculateInboundLinkStats mocks base method.
func (*MockStatsSetting) CalculateInboundStats ¶
func (m *MockStatsSetting) CalculateInboundStats() bool
CalculateInboundStats mocks base method.
func (*MockStatsSetting) CalculateOutboundLinkStats ¶
func (m *MockStatsSetting) CalculateOutboundLinkStats() bool
CalculateOutboundLinkStats mocks base method.
func (*MockStatsSetting) CalculateSessionStats ¶
func (m *MockStatsSetting) CalculateSessionStats() bool
CalculateSessionStats mocks base method.
func (*MockStatsSetting) CalculateUserStats ¶
func (m *MockStatsSetting) CalculateUserStats() bool
CalculateUserStats mocks base method.
func (*MockStatsSetting) EXPECT ¶
func (m *MockStatsSetting) EXPECT() *MockStatsSettingMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockStatsSettingMockRecorder ¶
type MockStatsSettingMockRecorder struct {
// contains filtered or unexported fields
}
MockStatsSettingMockRecorder is the mock recorder for MockStatsSetting.
func (*MockStatsSettingMockRecorder) CalculateInboundLinkStats ¶
func (mr *MockStatsSettingMockRecorder) CalculateInboundLinkStats() *gomock.Call
CalculateInboundLinkStats indicates an expected call of CalculateInboundLinkStats.
func (*MockStatsSettingMockRecorder) CalculateInboundStats ¶
func (mr *MockStatsSettingMockRecorder) CalculateInboundStats() *gomock.Call
CalculateInboundStats indicates an expected call of CalculateInboundStats.
func (*MockStatsSettingMockRecorder) CalculateOutboundLinkStats ¶
func (mr *MockStatsSettingMockRecorder) CalculateOutboundLinkStats() *gomock.Call
CalculateOutboundLinkStats indicates an expected call of CalculateOutboundLinkStats.
func (*MockStatsSettingMockRecorder) CalculateSessionStats ¶
func (mr *MockStatsSettingMockRecorder) CalculateSessionStats() *gomock.Call
CalculateSessionStats indicates an expected call of CalculateSessionStats.
func (*MockStatsSettingMockRecorder) CalculateUserStats ¶
func (mr *MockStatsSettingMockRecorder) CalculateUserStats() *gomock.Call
CalculateUserStats indicates an expected call of CalculateUserStats.
type MockTimeoutSetting ¶
type MockTimeoutSetting struct {
// contains filtered or unexported fields
}
MockTimeoutSetting is a mock of TimeoutSetting interface.
func NewMockTimeoutSetting ¶
func NewMockTimeoutSetting(ctrl *gomock.Controller) *MockTimeoutSetting
NewMockTimeoutSetting creates a new mock instance.
func (*MockTimeoutSetting) DnsIdleTimeout ¶
func (m *MockTimeoutSetting) DnsIdleTimeout() time.Duration
DnsIdleTimeout mocks base method.
func (*MockTimeoutSetting) DownLinkOnlyTimeout ¶
func (m *MockTimeoutSetting) DownLinkOnlyTimeout() time.Duration
DownLinkOnlyTimeout mocks base method.
func (*MockTimeoutSetting) EXPECT ¶
func (m *MockTimeoutSetting) EXPECT() *MockTimeoutSettingMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTimeoutSetting) HandshakeTimeout ¶
func (m *MockTimeoutSetting) HandshakeTimeout() time.Duration
HandshakeTimeout mocks base method.
func (*MockTimeoutSetting) TcpIdleTimeout ¶
func (m *MockTimeoutSetting) TcpIdleTimeout() time.Duration
TcpIdleTimeout mocks base method.
func (*MockTimeoutSetting) UdpIdleTimeout ¶
func (m *MockTimeoutSetting) UdpIdleTimeout() time.Duration
UdpIdleTimeout mocks base method.
func (*MockTimeoutSetting) UpLinkOnlyTimeout ¶
func (m *MockTimeoutSetting) UpLinkOnlyTimeout() time.Duration
UpLinkOnlyTimeout mocks base method.
type MockTimeoutSettingMockRecorder ¶
type MockTimeoutSettingMockRecorder struct {
// contains filtered or unexported fields
}
MockTimeoutSettingMockRecorder is the mock recorder for MockTimeoutSetting.
func (*MockTimeoutSettingMockRecorder) DnsIdleTimeout ¶
func (mr *MockTimeoutSettingMockRecorder) DnsIdleTimeout() *gomock.Call
DnsIdleTimeout indicates an expected call of DnsIdleTimeout.
func (*MockTimeoutSettingMockRecorder) DownLinkOnlyTimeout ¶
func (mr *MockTimeoutSettingMockRecorder) DownLinkOnlyTimeout() *gomock.Call
DownLinkOnlyTimeout indicates an expected call of DownLinkOnlyTimeout.
func (*MockTimeoutSettingMockRecorder) HandshakeTimeout ¶
func (mr *MockTimeoutSettingMockRecorder) HandshakeTimeout() *gomock.Call
HandshakeTimeout indicates an expected call of HandshakeTimeout.
func (*MockTimeoutSettingMockRecorder) TcpIdleTimeout ¶
func (mr *MockTimeoutSettingMockRecorder) TcpIdleTimeout() *gomock.Call
TcpIdleTimeout indicates an expected call of TcpIdleTimeout.
func (*MockTimeoutSettingMockRecorder) UdpIdleTimeout ¶
func (mr *MockTimeoutSettingMockRecorder) UdpIdleTimeout() *gomock.Call
UdpIdleTimeout indicates an expected call of UdpIdleTimeout.
func (*MockTimeoutSettingMockRecorder) UpLinkOnlyTimeout ¶
func (mr *MockTimeoutSettingMockRecorder) UpLinkOnlyTimeout() *gomock.Call
UpLinkOnlyTimeout indicates an expected call of UpLinkOnlyTimeout.
type MockTunInfo ¶
type MockTunInfo struct {
// contains filtered or unexported fields
}
MockTunInfo is a mock of TunInfo interface.
func NewMockTunInfo ¶
func NewMockTunInfo(ctrl *gomock.Controller) *MockTunInfo
NewMockTunInfo creates a new mock instance.
func (*MockTunInfo) EXPECT ¶
func (m *MockTunInfo) EXPECT() *MockTunInfoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTunInfo) ShouldBindDevice ¶
func (m *MockTunInfo) ShouldBindDevice() bool
ShouldBindDevice mocks base method.
func (*MockTunInfo) TunEnabled ¶
func (m *MockTunInfo) TunEnabled() bool
TunEnabled mocks base method.
type MockTunInfoMockRecorder ¶
type MockTunInfoMockRecorder struct {
// contains filtered or unexported fields
}
MockTunInfoMockRecorder is the mock recorder for MockTunInfo.
func (*MockTunInfoMockRecorder) ShouldBindDevice ¶
func (mr *MockTunInfoMockRecorder) ShouldBindDevice() *gomock.Call
ShouldBindDevice indicates an expected call of ShouldBindDevice.
func (*MockTunInfoMockRecorder) TunDns ¶
func (mr *MockTunInfoMockRecorder) TunDns() *gomock.Call
TunDns indicates an expected call of TunDns.
func (*MockTunInfoMockRecorder) TunEnabled ¶
func (mr *MockTunInfoMockRecorder) TunEnabled() *gomock.Call
TunEnabled indicates an expected call of TunEnabled.
type MockUint64Counter ¶
type MockUint64Counter struct {
// contains filtered or unexported fields
}
MockUint64Counter is a mock of Uint64Counter interface.
func NewMockUint64Counter ¶
func NewMockUint64Counter(ctrl *gomock.Controller) *MockUint64Counter
NewMockUint64Counter creates a new mock instance.
func (*MockUint64Counter) Add ¶
func (m *MockUint64Counter) Add(v uint64) uint64
Add mocks base method.
func (*MockUint64Counter) EXPECT ¶
func (m *MockUint64Counter) EXPECT() *MockUint64CounterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUint64CounterMockRecorder ¶
type MockUint64CounterMockRecorder struct {
// contains filtered or unexported fields
}
MockUint64CounterMockRecorder is the mock recorder for MockUint64Counter.
func (*MockUint64CounterMockRecorder) Add ¶
func (mr *MockUint64CounterMockRecorder) Add(v interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockUint64CounterMockRecorder) Load ¶
func (mr *MockUint64CounterMockRecorder) Load() *gomock.Call
Load indicates an expected call of Load.
type MockUser ¶
type MockUser struct {
// contains filtered or unexported fields
}
MockUser is a mock of User interface.
func NewMockUser ¶
func NewMockUser(ctrl *gomock.Controller) *MockUser
NewMockUser creates a new mock instance.
func (*MockUser) EXPECT ¶
func (m *MockUser) EXPECT() *MockUserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUserMockRecorder ¶
type MockUserMockRecorder struct {
// contains filtered or unexported fields
}
MockUserMockRecorder is the mock recorder for MockUser.
func (*MockUserMockRecorder) Counter ¶
func (mr *MockUserMockRecorder) Counter() *gomock.Call
Counter indicates an expected call of Counter.
func (*MockUserMockRecorder) Level ¶
func (mr *MockUserMockRecorder) Level() *gomock.Call
Level indicates an expected call of Level.
func (*MockUserMockRecorder) Secret ¶
func (mr *MockUserMockRecorder) Secret() *gomock.Call
Secret indicates an expected call of Secret.
func (*MockUserMockRecorder) Uid ¶
func (mr *MockUserMockRecorder) Uid() *gomock.Call
Uid indicates an expected call of Uid.
type MockUserValidator ¶
type MockUserValidator struct {
// contains filtered or unexported fields
}
MockUserValidator is a mock of UserValidator interface.
func NewMockUserValidator ¶
func NewMockUserValidator(ctrl *gomock.Controller) *MockUserValidator
NewMockUserValidator creates a new mock instance.
func (*MockUserValidator) EXPECT ¶
func (m *MockUserValidator) EXPECT() *MockUserValidatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserValidator) Validate ¶
func (m *MockUserValidator) Validate(secret []byte) bool
Validate mocks base method.
type MockUserValidatorMockRecorder ¶
type MockUserValidatorMockRecorder struct {
// contains filtered or unexported fields
}
MockUserValidatorMockRecorder is the mock recorder for MockUserValidator.
func (*MockUserValidatorMockRecorder) Validate ¶
func (mr *MockUserValidatorMockRecorder) Validate(secret interface{}) *gomock.Call
Validate indicates an expected call of Validate.