tgstatus

package module
v0.0.0-...-e107c29 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

tgstatus

Simple status page for telegram.

Documentation

Overview

Package tgstatus implements status page for telegram.

Index

Constants

This section is empty.

Variables

View Source
var Web []byte

Functions

This section is empty.

Types

type Check

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

func (*Check) Loop

func (c *Check) Loop(ctx context.Context) error

func (*Check) Report

func (c *Check) Report() Report

func (*Check) Run

func (c *Check) Run(ctx context.Context) error

type Report

type Report struct {
	ID   int
	IP   string
	Seen time.Time
}

type Status

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

func New

func New(appID int, appHash string, log *zap.Logger) *Status

func (*Status) Collect

func (s *Status) Collect(metrics chan<- prometheus.Metric)

func (*Status) Describe

func (s *Status) Describe(descs chan<- *prometheus.Desc)

func (*Status) Report

func (s *Status) Report() []Report

func (*Status) Run

func (s *Status) Run(ctx context.Context) error

Directories

Path Synopsis
cmd
tgstatd command
Binary tgstatus servers telegram status page.
Binary tgstatus servers telegram status page.

Jump to

Keyboard shortcuts

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