messages

package
v0.0.0-...-7426b64 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ConfigKeyLastReport = "messages.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 Messages

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

func New

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

func (*Messages) Check

func (m *Messages) Check(command string, flags []string) ([]*graph.MessageInfo, error)

func (*Messages) Close

func (m *Messages) 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