config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultFilename = "ddns_config"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Email  string
	Domain string
	Token  string
	Record *ker.Record
	// contains filtered or unexported fields
}

func New

func New(options *Options) *Config

func (*Config) CreateConfig

func (config *Config) CreateConfig() error

func (*Config) GetConfig

func (config *Config) GetConfig() error

func (*Config) IfConfigIsExist

func (config *Config) IfConfigIsExist() (bool, error)

func (*Config) MkConfigDir

func (config *Config) MkConfigDir() error

func (*Config) SetDomain

func (config *Config) SetDomain(domain string)

func (*Config) SetEmail

func (config *Config) SetEmail(email string)

func (*Config) SetRecord

func (config *Config) SetRecord(record *ker.Record)

func (*Config) SetToken

func (config *Config) SetToken(token string)

func (*Config) WriteConfig

func (config *Config) WriteConfig() error

type Options

type Options struct {
	ConfigDir string
	FileName  string
}

Jump to

Keyboard shortcuts

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