Categorygithub.com/alfonmga/zap2telegram
modulepackage
1.0.1
Repository: https://github.com/alfonmga/zap2telegram.git
Documentation: pkg.go.dev

# README

zap2telegram

Go Reference

Install

Via go get tool

$ go get -u github.com/alfonmga/zap2telegram

Usage

Example usage:

...

Browse the docs for all the available options.

# Functions

NewTelegramCore returns a new zap2telegram instance configured with the given options.
WithDisabledNotification disables Telegram message notification.
WithFormatter sets a custom Telegram message formatter.
WithLevel sends messages equal or above specified level.
WithNotificationOn enables Telegram message notification on specified levels.
WithoutAsyncOpt disables default asynchronous mode and enables synchronous mode for messages sending (blocking).
WithParseMode sets parse mode for Telegram messages (E.g: "ModeMarkdown", "ModeMarkdownV2" or "ModeHTML") https://core.telegram.org/bots/api#formatting-options.
WithQueue sends the messages to Telegram in batches (burst) at the specified interval.
WithStrongLevel sends only messages with specified level.

# Variables

All levels provided by zap.
Posible errors when creating a new Zap Core.
Posible errors when creating a new Zap Core.
Posible errors when creating a new Zap Core.

# Structs

No description provided by the author

# Type aliases

No description provided by the author