Documentation ¶
Index ¶
- Constants
- func EncodeError(ctx context.Context, err error, w http.ResponseWriter)
- func MakeConnectEndpoint(svc Service) endpoint.Endpoint
- func MarshalEvent(e *Event) ([]byte, error)
- func UnmarshalEvent(data []byte, e *Event) error
- type ConnectService
- type Endpoints
- type Event
- type HTTPHandlers
- type MDMConnectRequest
- type Middleware
- type Queue
- type Service
Constants ¶
View Source
const ConnectTopic = "mdm.Connect"
Variables ¶
This section is empty.
Functions ¶
func EncodeError ¶
func EncodeError(ctx context.Context, err error, w http.ResponseWriter)
EncodeError is used by the HTTP transport to encode service errors in HTTP. The EncodeError should be passed to the Go-Kit httptransport as the ServerErrorEncoder to encode error responses.
func MakeConnectEndpoint ¶
func MarshalEvent ¶
func UnmarshalEvent ¶
Types ¶
type ConnectService ¶
type ConnectService struct {
// contains filtered or unexported fields
}
func (*ConnectService) Acknowledge ¶
func (svc *ConnectService) Acknowledge(ctx context.Context, req MDMConnectRequest) (payload []byte, err error)
type HTTPHandlers ¶
func MakeHTTPHandlers ¶
func MakeHTTPHandlers(ctx context.Context, endpoints Endpoints, opts ...httptransport.ServerOption) HTTPHandlers
type MDMConnectRequest ¶
type Middleware ¶
func LoggingMiddleware ¶
func LoggingMiddleware(logger log.Logger) Middleware
type Service ¶
type Service interface { // Acknowledge acknowledges a response sent by a device and returns // the next payload if one is available. Acknowledge(ctx context.Context, req MDMConnectRequest) (payload []byte, err error) }
The Service accepts responses sent to an MDM server by an enrolled device.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
connectproto
Package connectproto is a generated protocol buffer package.
|
Package connectproto is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.