dae/component/routing/domain_matcher.go

15 lines
358 B
Go
Raw Normal View History

/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2024, daeuniverse Organization <dae@v2raya.org>
*/
package routing
2023-03-14 14:01:55 +07:00
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)
}