refactor: remove utils pkg
BREAKING CHANGE: utils package has been removed in favor of specific new packages (http, crypto, strings)
This commit is contained in:
parent
251c476e17
commit
0ab5ea5a57
40 changed files with 131 additions and 126 deletions
|
@ -5,7 +5,7 @@ import (
|
|||
"errors"
|
||||
"net/http"
|
||||
|
||||
"github.com/caos/oidc/pkg/utils"
|
||||
httphelper "github.com/caos/oidc/pkg/http"
|
||||
)
|
||||
|
||||
type ProbesFn func(context.Context) error
|
||||
|
@ -49,7 +49,7 @@ func ReadyStorage(s Storage) ProbesFn {
|
|||
}
|
||||
|
||||
func ok(w http.ResponseWriter) {
|
||||
utils.MarshalJSON(w, status{"ok"})
|
||||
httphelper.MarshalJSON(w, status{"ok"})
|
||||
}
|
||||
|
||||
type status struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue