Skip to content

Direct msgp to decode time.Time in UTC for all time values #385

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bucket-targets.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (

//msgp:clearomitted
//msgp:tag json
//msgp:timezone utc
//go:generate msgp

// BucketTargets represents a slice of bucket targets by type and endpoint
Expand Down
12 changes: 6 additions & 6 deletions bucket-targets_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions external.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ package madmin

//msgp:clearomitted
//msgp:tag json
//msgp:timezone utc
//go:generate msgp -unexported -file $GOFILE

type cpuTimesStat struct {
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ go 1.24.0

toolchain go1.24.2

replace github.com/tinylib/msgp v1.2.5 => github.com/klauspost/msgp v1.1.6-0.20250506154734-b646eabda3d7
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Remove me.


// Install tools using 'go install tool'.
tool (
github.com/tinylib/msgp
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ github.com/klauspost/compress v1.18.0/go.mod h1:2Pp+KzxcywXVXMr50+X0Q/Lsb43OQHYW
github.com/klauspost/cpuid/v2 v2.0.1/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
github.com/klauspost/cpuid/v2 v2.2.10 h1:tBs3QSyvjDyFTq3uoc/9xFpCuOsJQFNPiAhYdw2skhE=
github.com/klauspost/cpuid/v2 v2.2.10/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0=
github.com/klauspost/msgp v1.1.6-0.20250506154734-b646eabda3d7 h1:wtb9wt9h+q1IKnY8Im7guw9ev3vU4mbC1JlKp6ziSNg=
github.com/klauspost/msgp v1.1.6-0.20250506154734-b646eabda3d7/go.mod h1:ykjzy2wzgrlvpDCRc4LA8UXy6D8bzMSuAF3WD57Gok0=
github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI=
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
Expand Down Expand Up @@ -72,8 +74,6 @@ github.com/shirou/gopsutil/v4 v4.25.4 h1:cdtFO363VEOOFrUCjZRh4XVJkb548lyF0q0uTeM
github.com/shirou/gopsutil/v4 v4.25.4/go.mod h1:xbuxyoZj+UsgnZrENu3lQivsngRR5BdjbJwf2fv4szA=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/tinylib/msgp v1.2.5 h1:WeQg1whrXRFiZusidTQqzETkRpGjFjcIhW6uqWH09po=
github.com/tinylib/msgp v1.2.5/go.mod h1:ykjzy2wzgrlvpDCRc4LA8UXy6D8bzMSuAF3WD57Gok0=
github.com/tklauser/go-sysconf v0.3.15 h1:VE89k0criAymJ/Os65CSn1IXaol+1wrsFHEB8Ol49K4=
github.com/tklauser/go-sysconf v0.3.15/go.mod h1:Dmjwr6tYFIseJw7a3dRLJfsHAMXZ3nEnL/aZY+0IuI4=
github.com/tklauser/numcpus v0.10.0 h1:18njr6LDBk1zuna922MgdjQuJFjrdppsZG60sHGfjso=
Expand Down
1 change: 1 addition & 0 deletions heal-commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (

//msgp:clearomitted
//msgp:tag json
//msgp:timezone utc
//go:generate msgp -file $GOFILE

// HealScanMode represents the type of healing scan
Expand Down
20 changes: 10 additions & 10 deletions heal-commands_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions info-commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (

//msgp:clearomitted
//msgp:tag json
//msgp:timezone utc
//go:generate msgp -file $GOFILE

// BackendType - represents different backend types.
Expand Down
12 changes: 6 additions & 6 deletions info-commands_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions info-v4-commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (

//msgp:clearomitted
//msgp:tag json
//msgp:timezone utc
//go:generate msgp -file $GOFILE

// ClusterInfo cluster level information
Expand Down
1 change: 1 addition & 0 deletions license.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (

//msgp:clearomitted
//msgp:tag json
//msgp:timezone utc
//go:generate msgp
// LicenseInfo is a structure containing MinIO license information.

Expand Down
8 changes: 4 additions & 4 deletions license_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import (

//msgp:clearomitted
//msgp:tag json
//msgp:timezone utc
//go:generate msgp -unexported -file $GOFILE

// MetricType is a bitfield representation of different metric types.
Expand Down
Loading
Loading