config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Copyright © 2021 Henning Dahlheim <hactar@cyberkraft.ch>

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindFlag

func BindFlag(name string, flag *pflag.Flag)

func BindSubdomainFlag

func BindSubdomainFlag(flag *pflag.Flag)

func BindTokenFlag

func BindTokenFlag(flag *pflag.Flag)

func EnableDebug

func EnableDebug()

func SetConfigFile

func SetConfigFile(path string)

Types

type Config

type Config struct {
	Subdomain string `mapstructure:"subdomain"`
	Token     string `mapstructure:"api_token"`
	Default   struct {
		TaskId int `mapstructure:"task_id"`
	}
}

func InitConfig

func InitConfig() (*Config, error)

Jump to

Keyboard shortcuts

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