config

package
v0.0.0-...-c40e111 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "1.4.0"
	GitBranch = "unknown"
	GitCommit = "ffffff"
)
View Source
var DefaultConfigs = Config{
	&PushoverConfig{
		Server:  "unknown",
		Enable:  false,
		UserKey: "",
		AppKey:  "",
	},
}

Functions

func FormattedVersion

func FormattedVersion() string

Types

type Config

type Config struct {
	Pushover *PushoverConfig
}

type Initer

type Initer interface {
	Init()
}

type PushoverConfig

type PushoverConfig struct {
	Server  string
	Enable  bool
	UserKey string
	AppKey  string
	// contains filtered or unexported fields
}

func (*PushoverConfig) Init

func (p *PushoverConfig) Init()

func (*PushoverConfig) Send

func (p *PushoverConfig) Send(message, title string)

Jump to

Keyboard shortcuts

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