coremain

package
v3.9.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenConfig

func GenConfig(p string) error

GenConfig generates a config template to path p.

func Run

func Run(c string)

Run starts mosdns, it blocks.

Types

type Config

type Config struct {
	Log     mlog.LogConfig    `yaml:"log"`
	Library []string          `yaml:"library"`
	Plugin  []*handler.Config `yaml:"plugin"`
	Include []string          `yaml:"include"`
}

func (*Config) Save

func (c *Config) Save(p string) error

Jump to

Keyboard shortcuts

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