update to go-kit 0.4.0

This commit is contained in:
Victor Vrantchan
2017-03-17 19:10:32 +00:00
parent 75cc15e787
commit e6fa0b464f
11 changed files with 30 additions and 55 deletions

View File

@@ -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.

View File

@@ -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,