/**************************************************************************************
 *
 *     Project:    General use
 *     File name:  interfaces.go
 *     Version:    1.0.0
 *     Date:       2017-08-19
 *
 *     Autor:      Bogdanovic Theodor
 *     Contact:    t.bogdanovic@hotmail.com
 *
 *     License:    GPLv3
 *
 **************************************************************************************/
/**************************************************************************************
 * Copyright 2018 Bogdanovic Theodor
 *
 * This file is part of configPoller.
 *
 * configPoller is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * configPoller is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with configPoller.  If not, see <http://www.gnu.org/licenses/>.
 **************************************************************************************/
/**************************************************************************************
 *  Further explanations:  This source code is under the license specified by the
 *                         Autor above. Core components or other packages are still
 *                         in source code form, under the license specified by the
 *                         respective author.
 **************************************************************************************/

package configPoller

// IUpdateConfig defines how a configReader can be called to
// output its CheckSum and how to invoke a config file update
// from the outside
type IUpdateConfig interface {
	// from what the checksum was
	// generated does not matter here
	GetMd5Sum() [16]byte

	// What the update looks like in
	// the configReader is defined by
	// the reader with its own private method / function
	UpdateConfig() error
}
