Documentation ¶
Overview ¶
Package ids defines identifier types and utility methods specific to the fleetspeak server and server components.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocationID ¶
type AllocationID struct {
// contains filtered or unexported fields
}
AllocationID identifies an allocation from a broadcast.
func RandomAllocationID ¶
func RandomAllocationID() (AllocationID, error)
RandomAllocationID creates a new random AllocationID.
func (AllocationID) Bytes ¶
func (i AllocationID) Bytes() []byte
Bytes returns bytes stored by AllocationID
type BroadcastID ¶
type BroadcastID struct {
// contains filtered or unexported fields
}
BroadcastID identifies a broadcast using 8 arbitrary bytes and can be used as a map key.
func BytesToBroadcastID ¶
func BytesToBroadcastID(b []byte) (BroadcastID, error)
BytesToBroadcastID creates a BroadcastID based on the provided bytes.
func RandomBroadcastID ¶
func RandomBroadcastID() (BroadcastID, error)
RandomBroadcastID creates a new random BroadcastID.
func StringToBroadcastID ¶
func StringToBroadcastID(s string) (BroadcastID, error)
StringToBroadcastID creates a BroadcastID based on the provided hex string.
func (BroadcastID) Bytes ¶
func (i BroadcastID) Bytes() []byte
Bytes returns bytes stored by BroadcastID
Click to show internal directories.
Click to hide internal directories.