shoGambler/lib/main.go

39 lines
847 B
Go
Raw Permalink Normal View History

2024-10-20 17:12:11 +01:00
package lib
import (
"math/big"
"github.com/gin-gonic/gin"
)
type Date struct {
DaysSinceEpoch uint64
}
type PluginData struct {
Name string
CanReturnPoints bool
CanAddPoints bool
CanCheckMod bool
OnDataReturn string
CanAcceptArbitraryPointAmount bool
RecommendedPoints *big.Int
PluginHTML string
PluginScript string
ApiCode func(*gin.Context, ApiInput) (*big.Int, error)
HasExtraAPI bool
ExtraAPICode func(*gin.Context)
}
type ApiInput struct {
InputPoints *big.Int
AddPointsFunction func(string, *big.Int)
ChannelID string
OptionalData string
}
type DateAndStream struct {
Date Date
Stream *big.Int
}