options

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetsUrl

type AssetsUrl struct {
	Url                string `json:"url"`
	Name               string `json:"name"`
	BrowserDownloadUrl string `json:"browser_download_url"`
}

type AuthorOptionsEmbedsDiscord

type AuthorOptionsEmbedsDiscord struct {
	Name    string `json:"name"`
	Url     string `json:"url"`
	IconUrl string `json:"icon_url"`
}

type BurstDetectionOptions

type BurstDetectionOptions struct {
	LimitBreak float64 `json:"limitBreak"`
}

type Config

type Config struct {
	Port                  int                   `json:"port"`
	IdLog                 string                `json:"idLog"`
	PatternsWords         []string              `json:"pattenersWords"`
	GenerateLogsOptions   GenerateLogsOptions   `json:"generateLogsOptions"`
	WebHookUrls           []string              `json:"webhookUrls"`
	BurstDetectionOptions BurstDetectionOptions `json:"bursDetectionOptions"`
	ShipperConfig         ShipperConfig         `json:"shipper"`
	ReportInterval        float64               `json:"reportInterval"`
	BufferUdpSize         int                   `json:"bufferUdpSize"`
}

type FieldEmbedsDiscord

type FieldEmbedsDiscord struct {
	Name   string `json:"name"`
	Value  string `json:"value"`
	Inline bool   `json:"inline"`
}

type FooterEmbedsDiscord

type FooterEmbedsDiscord struct {
	Text    string `json:"text"`
	IconUrl string `json:"icon_url"`
}

type GenerateLogsOptions

type GenerateLogsOptions struct {
	GenerateLogsFile bool   `json:"generateLogsFile"`
	Hour             string `json:"hour"`
}

type ImageEmbedsDiscord

type ImageEmbedsDiscord struct {
	Url string `json:"url"`
}

type OptionsBlockSlack

type OptionsBlockSlack struct {
	Type     string                      `json:"type"`
	Text     *OptionsTextMrkSlack        `json:"text,omitempty"`
	Elements []OptionsElementsBlockSlack `json:"elements,omitempty"`
}

type OptionsElementsBlockSlack

type OptionsElementsBlockSlack struct {
	Type  string `json:"type"`
	Text  string `json:"text"`
	Emoji bool   `json:"emoji,omitempty"`
}

type OptionsEmbedsDiscord

type OptionsEmbedsDiscord struct {
	Title       string                     `json:"title"`
	Description string                     `json:"description"`
	Url         string                     `json:"url"`
	Color       int                        `json:"color"`
	Fields      []FieldEmbedsDiscord       `json:"fields"`
	Author      AuthorOptionsEmbedsDiscord `json:"author"`
	Footer      FooterEmbedsDiscord        `json:"footer"`
	Timestamp   time.Time                  `json:"timestamp"`
	Image       ImageEmbedsDiscord         `json:"image"`
	Thumbnail   ThumbnailEmbedsDiscord     `json:"thumbnail"`
}

type OptionsTextMrkSlack

type OptionsTextMrkSlack struct {
	Type  string `json:"type"`
	Text  string `json:"text"`
	Emoji bool   `json:"emoji,omitempty"` // omitempty porque mrkdwn no usa emoji
}

type ResponseGithubApi

type ResponseGithubApi struct {
	Body     string      `json:"body"`
	Tag_name string      `json:"tag_name"`
	Assets   []AssetsUrl `json:"assets"`
}

type ShipperConfig

type ShipperConfig struct {
	Address       string `json:"address"`
	FlushInterval int    `json:"flushInterval"`
	Protocol      string `json:"protocol"`
}

type ThumbnailEmbedsDiscord

type ThumbnailEmbedsDiscord struct {
	Url string `json:"url"`
}

type WebhookDiscord

type WebhookDiscord struct {
	Content string                 `json:"content"`
	Embeds  []OptionsEmbedsDiscord `json:"embeds"`
}

type WebhookSlack

type WebhookSlack struct {
	Text   string              `json:"text"`
	Blocks []OptionsBlockSlack `json:"blocks"`
}

Jump to

Keyboard shortcuts

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