merlin

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const Name = "merlin"

Variables

This section is empty.

Functions

This section is empty.

Types

type Merlin

type Merlin struct {
	// contains filtered or unexported fields
}

Merlin represents a configuration handler for setting up and managing ctrld on Merlin routers.

func New

func New(cfg *ctrld.Config) *Merlin

New returns a router.Router for configuring/setup/run ctrld on Merlin routers.

func (*Merlin) Cleanup

func (m *Merlin) Cleanup() error

Cleanup restores the original dnsmasq and nvram configurations and restarts dnsmasq if necessary.

func (*Merlin) ConfigureService

func (m *Merlin) ConfigureService(config *service.Config) error

ConfigureService configures the service based on the provided configuration. It returns an error if the configuration fails.

func (*Merlin) Install

func (m *Merlin) Install(_ *service.Config) error

Install sets up the necessary configurations and services required for the Merlin instance to function properly.

func (*Merlin) PreRun

func (m *Merlin) PreRun() error

PreRun prepares the Merlin instance for operation by waiting for essential services and directories to become available.

func (*Merlin) Setup

func (m *Merlin) Setup() error

Setup initializes and configures the Merlin instance for use, including setting up dnsmasq and necessary nvram settings.

func (*Merlin) Uninstall

func (m *Merlin) Uninstall(_ *service.Config) error

Uninstall removes the ctrld-related configurations and services from the Merlin router and reverts to the original state.

Jump to

Keyboard shortcuts

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