Documentation ¶
Index ¶
- Constants
- func MakeAcknowledgeEndpoint(svc Service) endpoint.Endpoint
- func MakeCheckinEndpoint(svc Service) endpoint.Endpoint
- func MarshalAcknowledgeEvent(e *AcknowledgeEvent) ([]byte, error)
- func MarshalCheckinEvent(e *CheckinEvent) ([]byte, error)
- func RegisterHTTPHandlers(r *mux.Router, e Endpoints, verifier SignatureVerifier, logger log.Logger)
- func UnmarshalAcknowledgeEvent(data []byte, e *AcknowledgeEvent) error
- func UnmarshalCheckinEvent(data []byte, e *CheckinEvent) error
- type AcknowledgeEvent
- type CheckinCommand
- type CheckinEvent
- type Endpoints
- type ErrorChainItem
- type MDMService
- type Middleware
- type Queue
- type Response
- type Service
- type SignatureVerifier
Constants ¶
View Source
const ( ConnectTopic = "mdm.Connect" AuthenticateTopic = "mdm.Authenticate" TokenUpdateTopic = "mdm.TokenUpdate" CheckoutTopic = "mdm.CheckOut" )
Variables ¶
This section is empty.
Functions ¶
func MakeAcknowledgeEndpoint ¶
func MakeCheckinEndpoint ¶
func MarshalAcknowledgeEvent ¶
func MarshalAcknowledgeEvent(e *AcknowledgeEvent) ([]byte, error)
func MarshalCheckinEvent ¶
func MarshalCheckinEvent(e *CheckinEvent) ([]byte, error)
MarshalCheckinEvent serializes an event to a protocol buffer wire format.
func RegisterHTTPHandlers ¶
func UnmarshalAcknowledgeEvent ¶
func UnmarshalAcknowledgeEvent(data []byte, e *AcknowledgeEvent) error
func UnmarshalCheckinEvent ¶
func UnmarshalCheckinEvent(data []byte, e *CheckinEvent) error
UnmarshalCheckinEvent parses a protocol buffer representation of data into the Event.
Types ¶
type AcknowledgeEvent ¶
type CheckinCommand ¶
type CheckinCommand struct { // MessageType can be either Authenticate, // TokenUpdate or CheckOut MessageType string Topic string UDID string // contains filtered or unexported fields }
CheckinRequest represents an MDM checkin command struct.
type CheckinEvent ¶
type Endpoints ¶
func MakeServerEndpoints ¶
type ErrorChainItem ¶
type MDMService ¶
type MDMService struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(pub pubsub.Publisher, queue Queue) *MDMService
func (*MDMService) Acknowledge ¶
func (svc *MDMService) Acknowledge(ctx context.Context, req AcknowledgeEvent) (payload []byte, err error)
func (*MDMService) Checkin ¶
func (svc *MDMService) Checkin(ctx context.Context, event CheckinEvent) error
type Middleware ¶
type Service ¶
type Service interface { Checkin(ctx context.Context, event CheckinEvent) error Acknowledge(ctx context.Context, event AcknowledgeEvent) (payload []byte, err error) }
type SignatureVerifier ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
package appmanifest provides utilities for managing app manifest files used by MDM InstallApplication commands.
|
package appmanifest provides utilities for managing app manifest files used by MDM InstallApplication commands. |
internal
|
|
internal/mdmproto
Package mdmproto is a generated protocol buffer package.
|
Package mdmproto is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.