Versions in this module Expand all Collapse all v1 v1.24.19 Mar 7, 2021 Changes in this version + var ConfListenPortRange = config.RegisterOption("yagpdb.botrest.port_range", "botrest listen port range", "5100-5999") + var ErrCantFindAddress = errors.New("can't find address for provided shard") + var ErrServerError = errors.New("internal api server is having issues") + func GetServerAddrForGuild(guildID int64) string + func GetServerAddrForShard(shard int) string + func GetWithAddress(addr string, url string, dest interface{}) error + func GetWithGuild(guildID int64, url string, dest interface{}) error + func GetWithShard(shard int, url string, dest interface{}) error + func PostWithAddress(serverAddr string, url string, bodyData interface{}, dest interface{}) error + func PostWithGuild(guildID int64, url string, bodyData interface{}, dest interface{}) error + func PostWithShard(shard int, url string, bodyData interface{}, dest interface{}) error + func RegisterPlugin() + func ServeJson(w http.ResponseWriter, r *http.Request, data interface{}) + func ServerError(w http.ResponseWriter, r *http.Request, err error) bool + type InternalAPIPlugin interface + InitInternalAPIRoutes func(mux *goji.Mux) + type Plugin struct + func (p *Plugin) CommonRun() + func (p *Plugin) PluginInfo() *common.PluginInfo