monitor

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package monitor provides a command-line application to query the GitHub API for API rate limits and deliver a notification message if the number of remaining API calls is <= (n).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFlagSet

func DefaultFlagSet() *flag.FlagSet

DefaultFlagSet returns a default `flag.FlagSet` instance configured with the necessary flags to execute the command-line application to query the GitHub API for API rate limits.

func Run

func Run(ctx context.Context, logger *log.Logger) error

Run executes the command-line application to query the GitHub API for API rate limits using the default `flag.FlagSet` instance.

func RunWithFlagSet

func RunWithFlagSet(ctx context.Context, fs *flag.FlagSet, logger *log.Logger) error

Run executes the command-line application to query the GitHub API for API rate limits using a custom `flag.FlagSet` instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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