Versions in this module Expand all Collapse all v1 v1.3.1 Jul 11, 2018 v1.3.0 Jun 10, 2018 Changes in this version + func MakeBlockDeviceEndpoint(svc Service) endpoint.Endpoint + func MakeUnblockDeviceEndpoint(svc Service) endpoint.Endpoint + func MarshalDevice(dev *Device) ([]byte, error) + func RegisterHTTPHandlers(r *mux.Router, e Endpoints, options ...httptransport.ServerOption) + func RemoveMiddleware(store Store) mdm.Middleware + func UnmarshalDevice(data []byte, dev *Device) error + type Device struct + UDID string + type Endpoints struct + BlockDeviceEndpoint endpoint.Endpoint + UnblockDeviceEndpoint endpoint.Endpoint + func MakeServerEndpoints(s Service, outer endpoint.Middleware, others ...endpoint.Middleware) Endpoints + func (e Endpoints) BlockDevice(ctx context.Context, udid string) error + func (e Endpoints) UnblockDevice(ctx context.Context, udid string) error + type Middleware func(next Service) Service + func LoggingMiddleware(logger log.Logger) Middleware + type RemoveService struct + func New(store Store) (*RemoveService, error) + func (svc *RemoveService) BlockDevice(ctx context.Context, udid string) error + func (svc *RemoveService) UnblockDevice(ctx context.Context, udid string) error + type Service interface + BlockDevice func(ctx context.Context, udid string) error + UnblockDevice func(ctx context.Context, udid string) error + func NewHTTPClient(instance, token string, logger log.Logger, opts ...httptransport.ClientOption) (Service, error) + type Store interface + Delete func(string) error + DeviceByUDID func(string) (*Device, error) + Save func(*Device) error