rest

package
v0.0.0-...-a537e16 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GuildInfo

type GuildInfo struct {
	GuildID string
}

type GuildSession

type GuildSession struct {
	GuildID     string
	GuildActive bool
	BotStatus   string
}

type Rest

type Rest struct {
	Bots map[string]map[string]botsdef.Discord
}

func NewRest

func NewRest(bots map[string]map[string]botsdef.Discord) *Rest

NewRest initializes a new Rest object with the given botInstances.

botInstances: a map of bot instances Returns a pointer to the newly initialized Rest object

func (*Rest) Start

func (r *Rest) Start(router *gin.Engine)

Start starts the REST API routes.

router: *gin.Engine

Jump to

Keyboard shortcuts

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