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: 0

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
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