mapper

package
v0.3.1-rc.12 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSkipResolve = errors.New("skip resolve domain")
View Source
var SkipResolve = netapi.ErrorResolver(func(domain string) error { return ErrSkipResolve })

Functions

This section is empty.

Types

type Combine

type Combine[T any] struct {
	// contains filtered or unexported fields
}

func NewMapper

func NewMapper[T any]() *Combine[T]

func (*Combine[T]) Clear

func (x *Combine[T]) Clear() error

func (*Combine[T]) Insert

func (x *Combine[T]) Insert(str string, mark T)

func (*Combine[T]) Remove

func (x *Combine[T]) Remove(str string)

func (*Combine[T]) Search

func (x *Combine[T]) Search(ctx context.Context, addr netapi.Address) (mark T, ok bool)

func (*Combine[T]) SearchWithDefault

func (x *Combine[T]) SearchWithDefault(ctx context.Context, addr netapi.Address, defaultT T) T

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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