service

package
v0.0.0-...-5623d4f Latest Latest
Warning

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

Go to latest
Published: May 12, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigService

type ConfigService struct {
	// Config is a pointer to the config object in use by the service
	Config *domain.Config

	// Location is the path to the YAML file holding the config
	Location string
}

ConfigService handles loading of the config

func (*ConfigService) Reload

func (s *ConfigService) Reload() (bool, error)

Reload reads the config and applies changes

func (*ConfigService) Watch

func (s *ConfigService) Watch(d time.Duration)

Watch reads the config file every d duration and applies changes

Jump to

Keyboard shortcuts

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