mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 21:22:25 -05:00
Update dependencies (#333)
This commit is contained in:
parent
ce22e03f9d
commit
182b4eea73
848 changed files with 377869 additions and 107280 deletions
17
vendor/codeberg.org/gruf/go-errors/data.go
generated
vendored
17
vendor/codeberg.org/gruf/go-errors/data.go
generated
vendored
|
|
@ -7,17 +7,22 @@ import (
|
|||
"codeberg.org/gruf/go-logger"
|
||||
)
|
||||
|
||||
// global logfmt data formatter
|
||||
var logfmt = logger.TextFormat{Strict: false}
|
||||
// global logfmt data formatter.
|
||||
var logfmt = logger.TextFormat{
|
||||
Strict: logger.DefaultTextFormat.Strict,
|
||||
MaxDepth: logger.DefaultTextFormat.MaxDepth,
|
||||
Levels: nil,
|
||||
TimeFormat: logger.DefaultTextFormat.TimeFormat,
|
||||
}
|
||||
|
||||
// KV is a structure for setting key-value pairs in ErrorData
|
||||
// KV is a structure for setting key-value pairs in ErrorData.
|
||||
type KV struct {
|
||||
Key string
|
||||
Value interface{}
|
||||
}
|
||||
|
||||
// ErrorData defines a way to set and access contextual error data.
|
||||
// The default implementation of this is thread-safe
|
||||
// The default implementation of this is thread-safe.
|
||||
type ErrorData interface {
|
||||
// Value will attempt to fetch value for given key in ErrorData
|
||||
Value(string) (interface{}, bool)
|
||||
|
|
@ -29,7 +34,7 @@ type ErrorData interface {
|
|||
String() string
|
||||
}
|
||||
|
||||
// NewData returns a new ErrorData implementation
|
||||
// NewData returns a new ErrorData implementation.
|
||||
func NewData() ErrorData {
|
||||
return &errorData{
|
||||
data: make(map[string]interface{}, 10),
|
||||
|
|
@ -37,7 +42,7 @@ func NewData() ErrorData {
|
|||
}
|
||||
|
||||
// errorData is our ErrorData implementation, this is essentially
|
||||
// just a thread-safe string-interface map implementation
|
||||
// just a thread-safe string-interface map implementation.
|
||||
type errorData struct {
|
||||
data map[string]interface{}
|
||||
buf bytes.Buffer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue