ids

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

func (AllocationID) String

func (i AllocationID) String() string

String implements fmt.Stringer

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

func (BroadcastID) String

func (i BroadcastID) String() string

String implements fmt.Stringer.

Jump to

Keyboard shortcuts

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