From c79874f96994f8c645f0f5cd716eed3b3dc25995 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 9 Feb 2019 18:20:53 +0100 Subject: added basic scaffolding for new go app --- pkg/controller/controller.go | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkg/controller/controller.go (limited to 'pkg/controller/controller.go') diff --git a/pkg/controller/controller.go b/pkg/controller/controller.go new file mode 100644 index 0000000..b8d04e7 --- /dev/null +++ b/pkg/controller/controller.go @@ -0,0 +1,38 @@ +// +// dolmetschctl +// +// +// Copyright (C) 2019 Christian Pointner +// +// This file is part of dolmetschctl. +// +// dolmetschctl 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 +// any later version. +// +// dolmetschctl 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 dolmetschctl. If not, see . +// + +package controller + +type Controller struct { +} + +func NewController(c Config) (*Controller, error) { + return &Controller{}, nil +} + +func (m *Controller) Init() error { + return nil +} + +func (m *Controller) Shutdown() error { + return nil +} -- cgit v1.2.3