Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
type CtxMutex ¶
type CtxMutex struct {
// contains filtered or unexported fields
}
func NewCtxMutex ¶
func NewCtxMutex() *CtxMutex
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map is a thread-safe map that is a wrapper around sync.Map with slight API additions.
func (*Map) Load ¶
Load loads an existing value; it returns ok set to false if there is no value with that key.
func (*Map) LoadOrStore ¶
LoadOrStore loads an existing value or stores a new value created from the given constructor then return that value.
type SnowflakeSet ¶
type SnowflakeSet struct {
// contains filtered or unexported fields
}
func NewSnowflakeSet ¶
func NewSnowflakeSet() *SnowflakeSet
NewSnowflakeSet creates a new SnowflakeSet.
func (*SnowflakeSet) Add ¶
func (s *SnowflakeSet) Add(flake discord.Snowflake)
Add adds the passed discord.Snowflake to the set.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.