Skip to content
Merged
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
6 changes: 5 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ require (
github.com/palantir/pkg/datetime v1.1.0
github.com/palantir/pkg/safejson v1.1.0
github.com/palantir/pkg/safeyaml v1.1.0
github.com/palantir/witchcraft-go-logging v1.57.0
)

require (
github.com/palantir/pkg v1.1.0 // indirect
github.com/palantir/pkg/transform v1.0.1 // indirect
github.com/palantir/pkg/transform v1.1.0 // indirect
github.com/palantir/witchcraft-go-error v1.38.0 // indirect
github.com/palantir/witchcraft-go-params v1.35.0 // indirect
github.com/palantir/witchcraft-go-tracing v1.37.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
43 changes: 34 additions & 9 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,26 +1,51 @@
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/palantir/pkg v1.0.1/go.mod h1:Eo6Jl0UXfT+65sLXJOcU9duu0WPvKsWFXCb0dE5VWZs=
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA=
github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/nmiyake/pkg/dirs v1.0.0 h1:pYeIw1wH7jh5/ew8naGE4Q56byJG7Uyi8PwwhVe/MTg=
github.com/nmiyake/pkg/dirs v1.0.0/go.mod h1:r6/PkZ3CA1szGfQkxcHheEjBWi6Zu6jLb+lQmRXEyvM=
github.com/openzipkin/zipkin-go v0.2.2 h1:nY8Hti+WKaP0cRsSeQ026wU03QsM762XBeCXBb9NAWI=
github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4=
github.com/palantir/pkg v1.1.0 h1:0EhrSUP8oeeh3MUvk7V/UU7WmsN1UiJNTvNj0sN9Cpo=
github.com/palantir/pkg v1.1.0/go.mod h1:KC9srP/9ssWRxBxFCIqhUGC4Jt7OJkWRz0Iqehup1/c=
github.com/palantir/pkg/datetime v1.1.0 h1:P4ZPuQI5rM8pHJ/0g3Bgx3MQkX1zzVqrbxfyrZ88xx4=
github.com/palantir/pkg/datetime v1.1.0/go.mod h1:pGoM4yYRQpvyFbbEFly5tL1cpBpfU++lM/m0EPrJ52M=
github.com/palantir/pkg/objmatcher v1.1.0 h1:bh/Set1mIL3sEJKIBbNr3afPg0PrvhPKY6deyGwGhZs=
github.com/palantir/pkg/objmatcher v1.1.0/go.mod h1:sUFipHgtqogNOs9uir4Fbu8Nu+n3qTAEL2vfghIiwZ0=
github.com/palantir/pkg/safejson v1.1.0 h1:myVdz3dGPjac1o3aYDuODk7BaYdsxHcYLfVNXMRP+MU=
github.com/palantir/pkg/safejson v1.1.0/go.mod h1:CxrDB47zqztxqu4ufDnh6MCrFhPCxXLF5pe1xj8yKlA=
github.com/palantir/pkg/safelong v1.1.0 h1:8FmSF6t5P4EPU0hjfsriVh2865IbVTZFGL9bEUsiiHU=
github.com/palantir/pkg/safelong v1.1.0/go.mod h1:CARLrsFBjYXgAG1RocAqBqcXG7XqKy5Fb5siZnlsNSU=
github.com/palantir/pkg/safeyaml v1.1.0 h1:5Pt3cGNw5QyOPYwfLsPImh+SiNIilSw3Cn4t3m7tZuo=
github.com/palantir/pkg/safeyaml v1.1.0/go.mod h1:RG0a/ze5V6uppZJvwV2e3RmyjKMxdPpwIyS5OHp3DPU=
github.com/palantir/pkg/transform v1.0.1 h1:+b0wtPsC/tcFOSoAzxsurXnbUnZIb4TDj/tfMLIMX3w=
github.com/palantir/pkg/transform v1.0.1/go.mod h1:Kn0ST9vBxM16s08/1uYPSWgAOussLidNmukkvqcIocE=
github.com/palantir/pkg/transform v1.1.0 h1:43tnYETShELXCRro6+uc0GlgB4GZvsQ/YNH5301IxW8=
github.com/palantir/pkg/transform v1.1.0/go.mod h1:SHqpFkx1vKQ8Bb81VsmySYTsSHSBtgj06cZm9HihuGk=
github.com/palantir/witchcraft-go-error v1.38.0 h1:oU79ToChppfvqi0hdQ/j0uPrHoJSJtQQpCW9gJpfPnk=
github.com/palantir/witchcraft-go-error v1.38.0/go.mod h1:Lu9nDGuwCGZQ7SG8g6WaXX4wYom7cSq0WKlnUQFhliQ=
github.com/palantir/witchcraft-go-logging v1.57.0 h1:/GrdOsEyjHgs5kCXrxFb/ye9UUinJiFXuBaYeaBcvJs=
github.com/palantir/witchcraft-go-logging v1.57.0/go.mod h1:BlJ8/Zih0lPfBdYrIgLl0MDQmHxAHL6+RXybT9A9ReA=
github.com/palantir/witchcraft-go-params v1.35.0 h1:10n0exOD/Ojo+QLFVw2Y1f62ySgjkmV2Zhd8O0THObQ=
github.com/palantir/witchcraft-go-params v1.35.0/go.mod h1:R+/PmtwK5BfCIrA6JFlUGhJfhTQOHGjQaLAaUvqfPLo=
github.com/palantir/witchcraft-go-tracing v1.37.0 h1:ngVUYYIzpjbw+jp6jHwhEpmZ5AxgdqjbOfl9lbD6xW4=
github.com/palantir/witchcraft-go-tracing v1.37.0/go.mod h1:zOWKNn0cVxsGFl8ZZ99j9m5fqZ6YrKW88CWQsGhC4K8=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/rs/zerolog v1.33.0 h1:1cU2KZkvPxNyfgEmhHAz/1A9Bz+llsdYzklWFzgp0r8=
github.com/rs/zerolog v1.33.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
go.uber.org/atomic v1.6.0 h1:Ezj3JGmsOnG1MoRWQkPBsKLe9DwWD9QeXzTRzzldNVk=
go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
go.uber.org/multierr v1.5.0 h1:KCa4XfM8CWFCpxXRGok+Q0SS/0XBhMDbHHGABQLvD2A=
go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU=
go.uber.org/zap v1.15.0 h1:ZZCA22JRF2gQE5FoNmhmrf7jeJJ2uhqDUNRYKm8dvmM=
go.uber.org/zap v1.15.0/go.mod h1:Mb2vm2krFEG5DV0W9qcHBYFtp/Wku1cvYaqPsS/WYfc=
golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o=
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
Expand Down
9 changes: 9 additions & 0 deletions signal/signal.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
package signal

import (
"context"
"encoding/base64"
"fmt"

"github.com/palantir/pkg/datetime"
"github.com/palantir/pkg/safejson"
"github.com/palantir/witchcraft-go-logging/wlog/svclog/svc1log"
)

type Signal struct {
Expand Down Expand Up @@ -49,3 +51,10 @@ func (s *Signal) AddError(err error) {
}
s.Status = 1
}

func (s *Signal) PanicHandler(ctx context.Context) {
if r := recover(); r != nil {
svc1log.FromContext(ctx).Error(fmt.Sprintf("panic: %v", r))
s.AddError(fmt.Errorf("panic: %v", r))
Comment thread
sean-hacker marked this conversation as resolved.
}
}
78 changes: 55 additions & 23 deletions vendor/github.com/palantir/pkg/transform/godelw

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

1 change: 1 addition & 0 deletions vendor/github.com/palantir/pkg/transform/main.go

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

17 changes: 17 additions & 0 deletions vendor/github.com/palantir/witchcraft-go-error/.bulldozer.yml

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

3 changes: 3 additions & 0 deletions vendor/github.com/palantir/witchcraft-go-error/.changelog.yml

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

11 changes: 11 additions & 0 deletions vendor/github.com/palantir/witchcraft-go-error/.excavator.yml

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

5 changes: 5 additions & 0 deletions vendor/github.com/palantir/witchcraft-go-error/.gitignore

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

Loading