config

package
v0.0.0-...-84b758b Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2016 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package config encapsulates journalcheck's configuration options. As journalcheck can be configured both using command line arguments and environment variables, this package provides simple accessor functions that return the value.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CursorFile

func CursorFile() (string, bool)

CursorFile returns the name of the file journalcheck should use for the cursor. If no such option was given, ok will be false.

func FilterFile

func FilterFile() (filename string, ok bool)

FilterFile returns the name of the file containing filter rules. If no such option was given, ok will be false.

func NumEntries

func NumEntries() int

NumEntries returns the number of entries to show in the interactive use case.

func OutputFormat

func OutputFormat() string

OutputFormat returns the format to use for formatting journal entries on output.

func RecipientAddress

func RecipientAddress() (string, bool)

RecipientAddress returns the e-mail address to be used for sending notification mails. If no such option was given, ok will be false.

Types

This section is empty.

Jump to

Keyboard shortcuts

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