Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlacklistPlugin ¶
type BlacklistPlugin struct { BlacklistMask []*net.IPNet // net.ParseCIDR("172.17.0.0/16") to get *net.IPNet // contains filtered or unexported fields }
func (*BlacklistPlugin) Add ¶
func (b *BlacklistPlugin) Add(ips ...string) *BlacklistPlugin
func (*BlacklistPlugin) Init ¶
func (b *BlacklistPlugin) Init(args ...interface{}) gnetrpc.Plugin
func (*BlacklistPlugin) OnDo ¶
func (b *BlacklistPlugin) OnDo(args ...interface{}) error
func (*BlacklistPlugin) Type ¶
func (b *BlacklistPlugin) Type() gnetrpc.PluginType
type ClosePlugin ¶
type ClosePlugin struct { }
func (*ClosePlugin) Init ¶
func (c *ClosePlugin) Init(args ...interface{}) gnetrpc.Plugin
func (*ClosePlugin) OnDo ¶
func (c *ClosePlugin) OnDo(args ...interface{}) error
func (*ClosePlugin) Type ¶
func (c *ClosePlugin) Type() gnetrpc.PluginType
type ConnectPlugin ¶
type ConnectPlugin struct { }
func (*ConnectPlugin) Init ¶
func (c *ConnectPlugin) Init(args ...interface{}) gnetrpc.Plugin
func (*ConnectPlugin) OnDo ¶
func (c *ConnectPlugin) OnDo(args ...interface{}) error
func (*ConnectPlugin) Type ¶
func (c *ConnectPlugin) Type() gnetrpc.PluginType
Click to show internal directories.
Click to hide internal directories.