mocks

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

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.

func (*MockAppSet) Match

func (m *MockAppSet) Match(appId string) bool

Match mocks base method.

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

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

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDefaultInterfaceChangeSubject) Notify

Notify mocks base method.

func (*MockDefaultInterfaceChangeSubject) Register

Register mocks base method.

func (*MockDefaultInterfaceChangeSubject) Unregister

Unregister mocks base method.

type MockDefaultInterfaceChangeSubjectMockRecorder

type MockDefaultInterfaceChangeSubjectMockRecorder struct {
	// contains filtered or unexported fields
}

MockDefaultInterfaceChangeSubjectMockRecorder is the mock recorder for MockDefaultInterfaceChangeSubject.

func (*MockDefaultInterfaceChangeSubjectMockRecorder) Notify

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

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

Register mocks base method.

func (*MockDefaultInterfaceInfo) SupportIPv6

func (m *MockDefaultInterfaceInfo) SupportIPv6() int

SupportIPv6 mocks base method.

func (*MockDefaultInterfaceInfo) Unregister

Unregister mocks base method.

type MockDefaultInterfaceInfoMockRecorder

type MockDefaultInterfaceInfoMockRecorder struct {
	// contains filtered or unexported fields
}

MockDefaultInterfaceInfoMockRecorder is the mock recorder for MockDefaultInterfaceInfo.

func (*MockDefaultInterfaceInfoMockRecorder) DefaultDns4

DefaultDns4 indicates an expected call of DefaultDns4.

func (*MockDefaultInterfaceInfoMockRecorder) DefaultDns6

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

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

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

Dial mocks base method.

func (*MockDialerListener) EXPECT

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

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

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

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

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

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.

func (*MockGeoHelper) MatchIP

func (m *MockGeoHelper) MatchIP(ip net.IP, tag string) bool

MatchIP 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

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

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

Support6 indicates an expected call of Support6.

func (*MockHandlerWith6InfoMockRecorder) Tag

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIPResolver) LookupIP

func (m *MockIPResolver) LookupIP(ctx context.Context, domain string) ([]net.IP, error)

LookupIP mocks base method.

func (*MockIPResolver) LookupIPv4

func (m *MockIPResolver) LookupIPv4(ctx context.Context, domain string) ([]net.IP, error)

LookupIPv4 mocks base method.

func (*MockIPResolver) LookupIPv6

func (m *MockIPResolver) LookupIPv6(ctx context.Context, domain string) ([]net.IP, error)

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.

func (*MockIPSet) Match

func (m *MockIPSet) Match(ip net.IP) bool

Match mocks base method.

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

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

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

Register mocks base method.

func (*MockIPv6SupportChangeSubject) Unregister

Unregister mocks base method.

type MockIPv6SupportChangeSubjectMockRecorder

type MockIPv6SupportChangeSubjectMockRecorder struct {
	// contains filtered or unexported fields
}

MockIPv6SupportChangeSubjectMockRecorder is the mock recorder for MockIPv6SupportChangeSubject.

func (*MockIPv6SupportChangeSubjectMockRecorder) Notify

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIpToDomain) GetDomain

func (m *MockIpToDomain) GetDomain(ip net.IP) string

GetDomain mocks base method.

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockListener) Listen

func (m *MockListener) Listen(ctx context.Context, addr net.Addr) (net.Listener, error)

Listen mocks base method.

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) Close

func (m *MockMyConn) Close() error

Close mocks base method.

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) Close

func (m *MockMyPacketConn) Close() error

Close mocks base method.

func (*MockMyPacketConn) EXPECT

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

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

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.

func (*MockNamedHandler) Tag

func (m *MockNamedHandler) Tag() string

Tag 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

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

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

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

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

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

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

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

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

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

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

func (m *MockRouter) PickHandler(ctx context.Context, si *session.Info) (i.Outbound, error)

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

Dial mocks base method.

func (*MockRunnableDialer) EXPECT

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

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

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

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

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) TunDns

func (m *MockTunInfo) TunDns() []netip.Addr

TunDns 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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUint64Counter) Load

func (m *MockUint64Counter) Load() uint64

Load mocks base method.

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

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) Counter

func (m *MockUser) Counter() *atomic.Uint64

Counter mocks base method.

func (*MockUser) EXPECT

func (m *MockUser) EXPECT() *MockUserMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUser) Level

func (m *MockUser) Level() uint32

Level mocks base method.

func (*MockUser) Secret

func (m *MockUser) Secret() uuid.UUID

Secret mocks base method.

func (*MockUser) Uid

func (m *MockUser) Uid() uuid.UUID

Uid mocks base method.

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL