Documentation ¶
Overview ¶
sessionfiltertrace
Index ¶
- Variables
- type AuthenticationFilter
- func (af *AuthenticationFilter) GetInterestOps() uint
- func (af *AuthenticationFilter) GetName() string
- func (af *AuthenticationFilter) OnPacketReceived(s *netlib.Session, packetid int, logicNo uint32, packet interface{}) bool
- func (af *AuthenticationFilter) OnPacketSent(s *netlib.Session, packetid int, logicNo uint32, data []byte) bool
- func (af *AuthenticationFilter) OnSessionClosed(s *netlib.Session) bool
- func (af *AuthenticationFilter) OnSessionIdle(s *netlib.Session) bool
- func (af *AuthenticationFilter) OnSessionOpened(s *netlib.Session) bool
- type AuthenticationHandler
- type BlackListFilter
- func (blf *BlackListFilter) Block(ipnet *net.IPNet)
- func (blf *BlackListFilter) GetInterestOps() uint
- func (blf *BlackListFilter) GetName() string
- func (blf *BlackListFilter) OnPacketReceived(s *netlib.Session, packetid int, logicNo uint32, packet interface{}) bool
- func (blf *BlackListFilter) OnPacketSent(s *netlib.Session, packetid int, logicNo uint32, data []byte) bool
- func (blf *BlackListFilter) OnSessionClosed(s *netlib.Session) bool
- func (blf *BlackListFilter) OnSessionIdle(s *netlib.Session) bool
- func (blf *BlackListFilter) OnSessionOpened(s *netlib.Session) bool
- func (blf *BlackListFilter) UnBlock(ipnet *net.IPNet)
- type ConnectionThrottleFilter
- func (ctf *ConnectionThrottleFilter) GetInterestOps() uint
- func (ctf *ConnectionThrottleFilter) GetName() string
- func (ctf *ConnectionThrottleFilter) OnPacketReceived(s *netlib.Session, packetid int, logicNo uint32, packet interface{}) bool
- func (ctf *ConnectionThrottleFilter) OnPacketSent(s *netlib.Session, packetid int, logicNo uint32, data []byte) bool
- func (ctf *ConnectionThrottleFilter) OnSessionClosed(s *netlib.Session) bool
- func (ctf *ConnectionThrottleFilter) OnSessionIdle(s *netlib.Session) bool
- func (ctf *ConnectionThrottleFilter) OnSessionOpened(s *netlib.Session) bool
- type KeepAliveFilter
- func (kf *KeepAliveFilter) GetInterestOps() uint
- func (kf *KeepAliveFilter) GetName() string
- func (kf *KeepAliveFilter) OnPacketReceived(s *netlib.Session, packetid int, logicNo uint32, packet interface{}) bool
- func (kf *KeepAliveFilter) OnPacketSent(s *netlib.Session, packetid int, logicNo uint32, data []byte) bool
- func (kf *KeepAliveFilter) OnSessionClosed(s *netlib.Session) bool
- func (kf *KeepAliveFilter) OnSessionIdle(s *netlib.Session) bool
- func (kf *KeepAliveFilter) OnSessionOpened(s *netlib.Session) bool
- type SessionFilterTrace
- func (sft *SessionFilterTrace) GetInterestOps() uint
- func (sft SessionFilterTrace) GetName() string
- func (sft *SessionFilterTrace) OnPacketReceived(s *netlib.Session, packetid int, logicNo uint32, packet interface{}) bool
- func (sft *SessionFilterTrace) OnPacketSent(s *netlib.Session, packetid int, logicNo uint32, data []byte) bool
- func (sft *SessionFilterTrace) OnSessionClosed(s *netlib.Session) bool
- func (sft *SessionFilterTrace) OnSessionIdle(s *netlib.Session) bool
- func (sft *SessionFilterTrace) OnSessionOpened(s *netlib.Session) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AuthenticationFilterName = "session-filter-auth" SessionAttributeAuth = &AuthenticationFilter{} )
View Source
var ( DefaultAllowedInterval = 500 //ms ConnectionThrottleFilterName = "session-filter-connectionthrottle" )
View Source
var (
BlackListFilterName = "session-filter-blacklist"
)
View Source
var (
KeepAliveFilterName = "session-filter-keepalive"
)
View Source
var (
SessionFilterTraceName = "session-filter-trace"
)
Functions ¶
This section is empty.
Types ¶
type AuthenticationFilter ¶
type AuthenticationFilter struct {
SessionAuthHandler AuthenticationHandler
}
func (*AuthenticationFilter) GetInterestOps ¶
func (af *AuthenticationFilter) GetInterestOps() uint
func (*AuthenticationFilter) GetName ¶
func (af *AuthenticationFilter) GetName() string
func (*AuthenticationFilter) OnPacketReceived ¶
func (*AuthenticationFilter) OnPacketSent ¶
func (*AuthenticationFilter) OnSessionClosed ¶
func (af *AuthenticationFilter) OnSessionClosed(s *netlib.Session) bool
func (*AuthenticationFilter) OnSessionIdle ¶
func (af *AuthenticationFilter) OnSessionIdle(s *netlib.Session) bool
func (*AuthenticationFilter) OnSessionOpened ¶
func (af *AuthenticationFilter) OnSessionOpened(s *netlib.Session) bool
type AuthenticationHandler ¶
type BlackListFilter ¶
type BlackListFilter struct {
// contains filtered or unexported fields
}
func (*BlackListFilter) Block ¶
func (blf *BlackListFilter) Block(ipnet *net.IPNet)
func (*BlackListFilter) GetInterestOps ¶
func (blf *BlackListFilter) GetInterestOps() uint
func (*BlackListFilter) GetName ¶
func (blf *BlackListFilter) GetName() string
func (*BlackListFilter) OnPacketReceived ¶
func (*BlackListFilter) OnPacketSent ¶
func (*BlackListFilter) OnSessionClosed ¶
func (blf *BlackListFilter) OnSessionClosed(s *netlib.Session) bool
func (*BlackListFilter) OnSessionIdle ¶
func (blf *BlackListFilter) OnSessionIdle(s *netlib.Session) bool
func (*BlackListFilter) OnSessionOpened ¶
func (blf *BlackListFilter) OnSessionOpened(s *netlib.Session) bool
func (*BlackListFilter) UnBlock ¶
func (blf *BlackListFilter) UnBlock(ipnet *net.IPNet)
type ConnectionThrottleFilter ¶
type ConnectionThrottleFilter struct { AllowedInterval int //ms // contains filtered or unexported fields }
func (*ConnectionThrottleFilter) GetInterestOps ¶
func (ctf *ConnectionThrottleFilter) GetInterestOps() uint
func (*ConnectionThrottleFilter) GetName ¶
func (ctf *ConnectionThrottleFilter) GetName() string
func (*ConnectionThrottleFilter) OnPacketReceived ¶
func (*ConnectionThrottleFilter) OnPacketSent ¶
func (*ConnectionThrottleFilter) OnSessionClosed ¶
func (ctf *ConnectionThrottleFilter) OnSessionClosed(s *netlib.Session) bool
func (*ConnectionThrottleFilter) OnSessionIdle ¶
func (ctf *ConnectionThrottleFilter) OnSessionIdle(s *netlib.Session) bool
func (*ConnectionThrottleFilter) OnSessionOpened ¶
func (ctf *ConnectionThrottleFilter) OnSessionOpened(s *netlib.Session) bool
type KeepAliveFilter ¶
type KeepAliveFilter struct { }
func (*KeepAliveFilter) GetInterestOps ¶
func (kf *KeepAliveFilter) GetInterestOps() uint
func (*KeepAliveFilter) GetName ¶
func (kf *KeepAliveFilter) GetName() string
func (*KeepAliveFilter) OnPacketReceived ¶
func (*KeepAliveFilter) OnPacketSent ¶
func (*KeepAliveFilter) OnSessionClosed ¶
func (kf *KeepAliveFilter) OnSessionClosed(s *netlib.Session) bool
func (*KeepAliveFilter) OnSessionIdle ¶
func (kf *KeepAliveFilter) OnSessionIdle(s *netlib.Session) bool
func (*KeepAliveFilter) OnSessionOpened ¶
func (kf *KeepAliveFilter) OnSessionOpened(s *netlib.Session) bool
type SessionFilterTrace ¶
func (*SessionFilterTrace) GetInterestOps ¶
func (sft *SessionFilterTrace) GetInterestOps() uint
func (SessionFilterTrace) GetName ¶
func (sft SessionFilterTrace) GetName() string
func (*SessionFilterTrace) OnPacketReceived ¶
func (*SessionFilterTrace) OnPacketSent ¶
func (*SessionFilterTrace) OnSessionClosed ¶
func (sft *SessionFilterTrace) OnSessionClosed(s *netlib.Session) bool
func (*SessionFilterTrace) OnSessionIdle ¶
func (sft *SessionFilterTrace) OnSessionIdle(s *netlib.Session) bool
func (*SessionFilterTrace) OnSessionOpened ¶
func (sft *SessionFilterTrace) OnSessionOpened(s *netlib.Session) bool
Click to show internal directories.
Click to hide internal directories.