plugin

package
v0.0.0-...-b48de1d Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: GPL-3.0 Imports: 6 Imported by: 1

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

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

Jump to

Keyboard shortcuts

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