merlin

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: MIT Imports: 14 Imported by: 0

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