memloader

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Loader = New()
)

Functions

func Decode

func Decode(filename, code string) ([]byte, error)

Types

type MemLoader

type MemLoader struct {
}

func New

func New() *MemLoader

func (*MemLoader) LoadAppsClash

func (s *MemLoader) LoadAppsClash(filepath string) ([]*configs.AppId, error)

func (*MemLoader) LoadCidrsClash

func (s *MemLoader) LoadCidrsClash(filepath string) ([]*geo.CIDR, error)

func (*MemLoader) LoadDomainsClash

func (s *MemLoader) LoadDomainsClash(filepath string) ([]*geo.Domain, error)

func (*MemLoader) LoadIP

func (m *MemLoader) LoadIP(filePath, code string) (*geo.GeoIP, error)

func (*MemLoader) LoadSite

func (m *MemLoader) LoadSite(filepath, code string) (*geo.GeoSite, error)

Jump to

Keyboard shortcuts

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