resulthandle

package
v0.0.0-...-eb5b8de Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryHandle

type MemoryHandle struct {
	HandleMap map[string]int //存黑名单数据
	MaxSize   int
	sync.Mutex
}

func NewMemoryHandle

func NewMemoryHandle(Maxsize int) *MemoryHandle

func (*MemoryHandle) Clean

func (m *MemoryHandle) Clean(ctx context.Context)

func (*MemoryHandle) HandleIpAddr

func (m *MemoryHandle) HandleIpAddr(Ipaddr string) (string, error)

Jump to

Keyboard shortcuts

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