serverlist

package
v0.0.0-...-dade96f Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: AGPL-3.0-or-later Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

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

func (*Plugin) Interval

func (p *Plugin) Interval() time.Duration

func (*Plugin) Localizations

func (p *Plugin) Localizations() []interfaces.Localization

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) Run

func (p *Plugin) Run(run *common.Run) (err error)

func (*Plugin) Start

func (p *Plugin) Start(params common.StartParameters) error

func (*Plugin) Stop

func (p *Plugin) Stop(params common.StopParameters) error

type Server

type Server struct {
	gorm.Model
	// Names         pq.StringArray `gorm:"type:varchar[]"`
	// Description   string
	InviteCode string
	GuildID    string
	// EditorUserIDs pq.StringArray `gorm:"type:varchar[]"`
	// Categories    []ServerCategory
	TotalMembers int
	State        State
	// Reason       string
	LastChecked time.Time
	BotID       string
}

Server model maintained by Processor

func (*Server) TableName

func (*Server) TableName() string

type State

type State string

State model maintained by Processor

const (
	StateExpired State = "expired"
)

Jump to

Keyboard shortcuts

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