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/mixer/config.go | 28 ++++++++++++++++++++++++++++ pkg/mixer/mixer.go | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 pkg/mixer/config.go create mode 100644 pkg/mixer/mixer.go (limited to 'pkg/mixer') diff --git a/pkg/mixer/config.go b/pkg/mixer/config.go new file mode 100644 index 0000000..bc0a292 --- /dev/null +++ b/pkg/mixer/config.go @@ -0,0 +1,28 @@ +// +// 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 mixer + +type Config struct { + DevIn string `json:"dev-in" yaml:"dev-in" toml:"dev-in"` + DevOut string `json:"dev-out" yaml:"dev-out" toml:"dev-out"` +} diff --git a/pkg/mixer/mixer.go b/pkg/mixer/mixer.go new file mode 100644 index 0000000..235978c --- /dev/null +++ b/pkg/mixer/mixer.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 mixer + +type Mixer struct { +} + +func NewMixer(c Config) (*Mixer, error) { + return &Mixer{}, nil +} + +func (m *Mixer) Init() error { + return nil +} + +func (m *Mixer) Shutdown() error { + return nil +} -- cgit v1.2.3