memloader

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 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) LoadApps added in v1.3.0

func (s *MemLoader) LoadApps(filepath string) ([]*vxrouter.AppId, error)

func (*MemLoader) LoadCidrs added in v1.3.0

func (s *MemLoader) LoadCidrs(filepath string) ([]*commongeo.CIDR, error)

func (*MemLoader) LoadDomains added in v1.3.0

func (s *MemLoader) LoadDomains(filepath string) ([]*commongeo.Domain, error)

func (*MemLoader) LoadIP

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

func (*MemLoader) LoadSite

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

Jump to

Keyboard shortcuts

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