mirror of
https://github.com/daeuniverse/dae.git
synced 2024-12-22 22:25:00 +07:00
15 lines
358 B
Go
15 lines
358 B
Go
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
* Copyright (c) 2022-2024, daeuniverse Organization <dae@v2raya.org>
|
|
*/
|
|
|
|
package routing
|
|
|
|
import "github.com/daeuniverse/dae/common/consts"
|
|
|
|
type DomainMatcher interface {
|
|
AddSet(bitIndex int, patterns []string, typ consts.RoutingDomainKey)
|
|
Build() error
|
|
MatchDomainBitmap(domain string) (bitmap []uint32)
|
|
}
|