Documentation ¶
Index ¶
- 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
- type Endpoints
- type Middleware
- type RemoveService
- type Service
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeBlockDeviceEndpoint ¶
func MarshalDevice ¶
func RegisterHTTPHandlers ¶
func RegisterHTTPHandlers(r *mux.Router, e Endpoints, options ...httptransport.ServerOption)
func RemoveMiddleware ¶
func RemoveMiddleware(store Store) mdm.Middleware
func UnmarshalDevice ¶
Types ¶
type Endpoints ¶
type Endpoints struct { BlockDeviceEndpoint endpoint.Endpoint UnblockDeviceEndpoint endpoint.Endpoint }
func MakeServerEndpoints ¶
func MakeServerEndpoints(s Service, outer endpoint.Middleware, others ...endpoint.Middleware) Endpoints
func (Endpoints) BlockDevice ¶
type Middleware ¶
func LoggingMiddleware ¶
func LoggingMiddleware(logger log.Logger) Middleware
type RemoveService ¶
type RemoveService struct {
// contains filtered or unexported fields
}
func New ¶
func New(store Store) (*RemoveService, error)
func (*RemoveService) BlockDevice ¶
func (svc *RemoveService) BlockDevice(ctx context.Context, udid string) error
func (*RemoveService) UnblockDevice ¶
func (svc *RemoveService) UnblockDevice(ctx context.Context, udid string) error
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
removeproto
Package removeproto is a generated protocol buffer package.
|
Package removeproto is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.