Documentation ¶
Overview ¶
Package logid contains ID types for interacting with the log service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateID ¶
type PrivateID [32]byte
PrivateID represents a log steam for writing. Private IDs are only shared with the server when writing logs.
func NewPrivateID ¶
NewPrivateID generates a new random PrivateID. This should persist across runs of an instance of the application, so that it can append to the same log stream for each invocation.
func ParsePrivateID ¶
ParsePrivateID returns a PrivateID from its hex representation.
func (PrivateID) MarshalText ¶
func (PrivateID) Public ¶
Public returns the public ID of the private ID, which is the SHA-256 hash of the private ID.
func (*PrivateID) UnmarshalText ¶
type PublicID ¶
PublicID represents a log stream for reading. The PrivateID cannot be feasibly reversed from the PublicID.
func ParsePublicID ¶
ParsePublicID returns a PublicID from its hex representation.