discordadvanceTransmitter

package
v0.0.0-...-da4c015 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTransmitterFromForm

func CreateTransmitterFromForm(transmitterType string, ctx *gin.Context, storeFunction func(transmitter structs.TransmitterStorage) int, id int) []byte

func NewTransmitterForm

func NewTransmitterForm(transmitterType string) []byte

func SetGlobalLogger

func SetGlobalLogger(logger *log.Logger)

Types

type DiscordAdvanceTransmitter

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

func Build

func Build(discordHook string, name string, status bool, count int) DiscordAdvanceTransmitter

func (DiscordAdvanceTransmitter) Active

func (trans DiscordAdvanceTransmitter) Active() bool

func (DiscordAdvanceTransmitter) GetStorageValue

func (trans DiscordAdvanceTransmitter) GetStorageValue(id int) structs.TransmitterStorage

func (*DiscordAdvanceTransmitter) GetTransmitCount

func (trans *DiscordAdvanceTransmitter) GetTransmitCount() int

func (DiscordAdvanceTransmitter) HTMLCard

func (trans DiscordAdvanceTransmitter) HTMLCard(id int) string

func (*DiscordAdvanceTransmitter) SetStatus

func (trans *DiscordAdvanceTransmitter) SetStatus(active bool)

func (*DiscordAdvanceTransmitter) Transmit

type DiscordEmbedField

type DiscordEmbedField struct {
	Name       string `json:"name"`
	Value      string `json:"value"`
	InlineFlag bool   `json:"inline"`
}

type DiscordEmbedStructure

type DiscordEmbedStructure struct {
	Title       string              `json:"title"`
	Type        string              `json:"type"`
	Description string              `json:"description"`
	Url         string              `json:"url"`
	Timestamp   string              `json:"timestamp"`
	Color       int                 `json:"color"`
	Fields      []DiscordEmbedField `json:"fields"`
}

type DiscordHookInfo

type DiscordHookInfo struct {
	Name string
}

type DiscordWebhookPayload

type DiscordWebhookPayload struct {
	Username string                  `json:"username"`
	Embeds   []DiscordEmbedStructure `json:"embeds"`
}

Jump to

Keyboard shortcuts

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