api

package
v0.0.0-...-39a685f Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Server  *http.Server
	Discord *discordgo.Session
}

func NewAPI

func NewAPI(ctx context.Context, discord *discordgo.Session) *API

func (*API) GetCount

func (a *API) GetCount(w http.ResponseWriter, r *http.Request)

type Response

type Response struct {
	Count int `json:"count"`
}

Jump to

Keyboard shortcuts

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