mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-14 09:25:52 +08:00
update to go-kit 0.4.0
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
package checkin
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
|
||||
"github.com/go-kit/kit/endpoint"
|
||||
"github.com/micromdm/mdm"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
// errInvalidMessageType is an invalid checking command.
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package checkin
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
"net/http"
|
||||
|
||||
httptransport "github.com/go-kit/kit/transport/http"
|
||||
"github.com/groob/plist"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
type HTTPHandlers struct {
|
||||
@@ -17,7 +17,6 @@ type HTTPHandlers struct {
|
||||
func MakeHTTPHandlers(ctx context.Context, endpoints Endpoints, opts ...httptransport.ServerOption) HTTPHandlers {
|
||||
h := HTTPHandlers{
|
||||
CheckinHandler: httptransport.NewServer(
|
||||
ctx,
|
||||
endpoints.CheckinEndpoint,
|
||||
decodeRequest,
|
||||
encodeResponse,
|
||||
|
||||
Reference in New Issue
Block a user