database

package
v0.0.0-...-4cd1e14 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDBConn

func GetDBConn() (*gorm.DB, error)

Types

type DB

type DB struct {
	Id      int
	Name    string
	Content string
}

type FeedMCServer

type FeedMCServer struct {
	ID        int
	CreatedAt time.Time
	UpdatedAt time.Time
	Hash      string
	GuildID   string
	ChannelID string
	RoleID    string
	Name      string
	Locale    discordgo.Locale
	PanelID   string `gorm:"primarykey"`
}

type FeedMCServers

type FeedMCServers []FeedMCServer

type GlobalBan

type GlobalBan struct {
	ID        int `gorm:"primarykey"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt `gorm:"index"`
	Reason    string
}

type GlobalBans

type GlobalBans []GlobalBan

type MessagePin

type MessagePin struct {
	ChannelID string `gorm:"primarykey"`
	MessageID string
	UserID    string
	UserName  string
	UserIcon  string
	Content   string
	Embeds    []byte
}

type TransMCServer

type TransMCServer struct {
	FeedMCServer
	Address string
	Port    uint16
}

type VoteObject

type VoteObject struct {
	VoteID       string `gorm:"primarykey"`
	ChannelID    string
	MessageID    string
	Title        string
	Description  string
	MinSelection int
	MaxSelection int
	ShowCount    bool
	Selections   []byte // array of VoteSelection
	StartAt      time.Time
	EndAt        time.Time
	Duration     time.Duration
	Locale       string
}

Jump to

Keyboard shortcuts

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