Documentation
¶
Index ¶
- Variables
- type Conn
- type ConnInstance
- func (c *ConnInstance) Aes() aes_store.Key
- func (c *ConnInstance) IP() string
- func (c *ConnInstance) LastUsed() time.Time
- func (c *ConnInstance) Name() string
- func (c *ConnInstance) Stop()
- func (c *ConnInstance) WriteTCP(pkt packet.TcpPacket) error
- func (c *ConnInstance) WriteUDP(pkt packet.TcpPacket) error
- type ConnStore
- type MockConnInstance
- func (c MockConnInstance) Aes() aes_store.Key
- func (c MockConnInstance) IP() string
- func (c MockConnInstance) LastUsed() time.Time
- func (c MockConnInstance) Name() string
- func (c MockConnInstance) Stop()
- func (c MockConnInstance) WriteTCP(pkt packet.TcpPacket) error
- func (c MockConnInstance) WriteUDP(pkt packet.TcpPacket) error
- type MockConnStore
- type Store
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoRoute = fmt.Errorf("unable to route")
Functions ¶
This section is empty.
Types ¶
type ConnInstance ¶
type ConnInstance struct {
// contains filtered or unexported fields
}
func (*ConnInstance) Aes ¶
func (c *ConnInstance) Aes() aes_store.Key
func (*ConnInstance) IP ¶
func (c *ConnInstance) IP() string
func (*ConnInstance) LastUsed ¶
func (c *ConnInstance) LastUsed() time.Time
func (*ConnInstance) Name ¶
func (c *ConnInstance) Name() string
func (*ConnInstance) Stop ¶
func (c *ConnInstance) Stop()
type MockConnInstance ¶
type MockConnInstance struct { AesFunc func() aes_store.Key WriteUDPFunc func(pkt packet.TcpPacket) error WriteTCPFunc func(pkt packet.TcpPacket) error LastUsedFunc func() time.Time IPFunc func() string NameFunc func() string StopFunc func() }
func (MockConnInstance) Aes ¶
func (c MockConnInstance) Aes() aes_store.Key
func (MockConnInstance) IP ¶
func (c MockConnInstance) IP() string
func (MockConnInstance) LastUsed ¶
func (c MockConnInstance) LastUsed() time.Time
func (MockConnInstance) Name ¶
func (c MockConnInstance) Name() string
func (MockConnInstance) Stop ¶
func (c MockConnInstance) Stop()
type MockConnStore ¶
type MockConnStore struct { StopFunc func(ip string) GetFunc func(ip string) Conn NewFunc func(ip string) Conn }
func (MockConnStore) Get ¶
func (c MockConnStore) Get(ip string) Conn
func (MockConnStore) New ¶
func (c MockConnStore) New(ip string) Conn
func (MockConnStore) Stop ¶
func (c MockConnStore) Stop(ip string)
Click to show internal directories.
Click to hide internal directories.