notifications

package
v0.0.0-...-7eaa7e1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigKeyLastReport = "notifications.last_reported"

Variables

This section is empty.

Functions

This section is empty.

Types

type ConditionParams

type ConditionParams struct {
	UserID       string
	UserName     string
	UserEmail    string
	OS           string
	OSVersion    Version
	StateChannel string
	StateVersion Version
	Command      string
	Flags        []string
}

type Notifications

type Notifications struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Instance, auth *auth.Auth) (*Notifications, error)

func (*Notifications) Check

func (m *Notifications) Check(command string, flags []string) ([]*graph.NotificationInfo, error)

func (*Notifications) Close

func (m *Notifications) Close() error

type Version

type Version struct {
	Raw   string
	Major int
	Minor int
	Patch int
	Build string
}

func NewVersionFromSemver

func NewVersionFromSemver(v semver.Version) Version

func NewVersionFromSysinfo

func NewVersionFromSysinfo(osVersion *sysinfo.OSVersionInfo) Version

Jump to

Keyboard shortcuts

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