state

package
v0.0.0-...-c1401b0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Overview

Block certain unsafe configurations by force-importing them

Index

Constants

This section is empty.

Variables

View Source
var (
	ClusterID      uint16
	ClusterName    string
	Shard          uint16 // A cluster can only have one associated shard
	ShardCount     uint16
	MewldResponder *mewldresponder.MewldResponder
)
View Source
var (
	Context              = context.Background()
	Config               *config.Config
	Validator            = validator.New()
	BotUser              *discordgo.User
	ObjectStorage        *objectstorage.ObjectStorage
	CurrentOperationMode string // Current mode splashtail is operating in

	Rueidis           rueidis.Client
	AnimusMagicClient *animusmagic.AnimusMagicClient

	// Debug stuff
	BuildInfo  *debug.BuildInfo
	ExtraDebug ExtraDebugInfo

	// Task stuff
	TaskTransport *http.Transport = &http.Transport{}

	Pool    *pgxpool.Pool
	Discord *discordgo.Session
	Logger  *zap.Logger
)

Functions

func Setup

func Setup()

func SetupBase

func SetupBase()

func SetupDebug

func SetupDebug()

Types

type ExtraDebugInfo

type ExtraDebugInfo struct {
	VSC         string
	VSCRevision string
}

type TaskRT

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

func (TaskRT) RoundTrip

func (t TaskRT) RoundTrip(req *http.Request) (resp *http.Response, err error)

Jump to

Keyboard shortcuts

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