Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ObjectName defines the name of the syncbeacon object.
ObjectName = "syncbeacon"
)
Variables ¶
View Source
var Type = payload.NewType(200, ObjectName, func(data []byte) (payload payload.Payload, err error) { var consumedBytes int payload, consumedBytes, err = FromBytes(data) if err != nil { return nil, err } if consumedBytes != len(data) { return nil, errors.New("not all payload bytes were consumed") } return })
Type is the type of the syncbeacon payload.
Functions ¶
func IsSyncBeaconPayload ¶
IsSyncBeaconPayload checks if the message is sync beacon payload.
Types ¶
type Payload ¶
type Payload struct {
// contains filtered or unexported fields
}
Payload represents the syncbeacon payload
func FromBytes ¶
FromBytes parses the marshaled version of a Payload into an object. It either returns a new Payload or fills an optionally provided Payload with the parsed information.
func NewSyncBeaconPayload ¶
NewSyncBeaconPayload creates a new syncbeacon payload
Click to show internal directories.
Click to hide internal directories.