options

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: Apache-2.0 Imports: 0 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *Options)

func WithCfgFile

func WithCfgFile(inp string) Option

func WithCheckInterval

func WithCheckInterval(inp int64) Option

func WithOnChangeFn

func WithOnChangeFn(inp func(interface{})) Option

func WithOnErrorFn

func WithOnErrorFn(inp func(error)) Option

type Options

type Options struct {
	File          string            // config main file
	CheckInterval int64             // file update check interval
	OnChangeFn    func(interface{}) // call it when the file is modified
	OnErrorFn     func(error)       // call it when an error occurs
}

Jump to

Keyboard shortcuts

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