depsync

package
v0.0.0-...-29c6822 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2018 License: MIT, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SyncTopic    = "mdm.DepSync"
	ConfigBucket = "mdm.DEPConfig"
)

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(db *bolt.DB) (*config, error)

func MarshalEvent

func MarshalEvent(e *Event) ([]byte, error)

MarshalEvent serializes an event to a protocol buffer wire format.

func UnmarshalEvent

func UnmarshalEvent(data []byte, e *Event) error

UnmarshalEvent parses a protocol buffer representation of data into the Event.

Types

type Event

type Event struct {
	ID      string
	Time    time.Time
	Devices []dep.Device
}

func NewEvent

func NewEvent(devices []dep.Device) *Event

type Option

type Option func(*watcher)

func WithClient

func WithClient(client dep.Client) Option

type Syncer

type Syncer interface {
	// contains filtered or unexported methods
}

func New

func New(pub pubsub.PublishSubscriber, db *bolt.DB, opts ...Option) (Syncer, error)

Directories

Path Synopsis
internal
depsyncproto
Package depsyncproto is a generated protocol buffer package.
Package depsyncproto is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL