Movatterモバイル変換


[0]ホーム

URL:


logid

package
v1.92.2Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License:BSD-3-ClauseImports:9Imported by:31

Details

Repository

github.com/tailscale/tailscale

Links

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

typePrivateID

type PrivateID [32]byte

PrivateID represents a log steam for writing.Private IDs are only shared with the server when writing logs.

funcNewPrivateID

func NewPrivateID() (idPrivateID, errerror)

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.

funcParsePrivateID

func ParsePrivateID(instring) (outPrivateID, errerror)

ParsePrivateID returns a PrivateID from its hex representation.

func (PrivateID)Addadded inv1.70.0

func (idPrivateID) Add(iint64)PrivateID

Add adds i to the id, treating it as an unsigned 256-bit big-endian integer,and returns the resulting ID.

func (PrivateID)AppendTextadded inv1.50.0

func (idPrivateID) AppendText(b []byte) ([]byte,error)

func (PrivateID)Compareadded inv1.70.0

func (id1PrivateID) Compare(id2PrivateID)int

func (PrivateID)IsZero

func (idPrivateID) IsZero()bool

func (PrivateID)Lessadded inv1.70.0

func (id1PrivateID) Less(id2PrivateID)bool

func (PrivateID)MarshalText

func (idPrivateID) MarshalText() ([]byte,error)

func (PrivateID)Public

func (idPrivateID) Public() (pubPublicID)

Public returns the public ID of the private ID,which is the SHA-256 hash of the private ID.

func (PrivateID)String

func (idPrivateID) String()string

func (*PrivateID)UnmarshalText

func (id *PrivateID) UnmarshalText(in []byte)error

typePublicID

type PublicID [sha256.Size]byte

PublicID represents a log stream for reading.The PrivateID cannot be feasibly reversed from the PublicID.

funcParsePublicID

func ParsePublicID(instring) (outPublicID, errerror)

ParsePublicID returns a PublicID from its hex representation.

func (PublicID)Addadded inv1.70.0

func (idPublicID) Add(iint64)PublicID

Add adds i to the id, treating it as an unsigned 256-bit big-endian integer,and returns the resulting ID.

func (PublicID)AppendTextadded inv1.50.0

func (idPublicID) AppendText(b []byte) ([]byte,error)

func (PublicID)Compareadded inv1.48.0

func (id1PublicID) Compare(id2PublicID)int

func (PublicID)IsZero

func (idPublicID) IsZero()bool

func (PublicID)Less

func (id1PublicID) Less(id2PublicID)bool

func (PublicID)MarshalText

func (idPublicID) MarshalText() ([]byte,error)

func (PublicID)Prefix64

func (idPublicID) Prefix64()uint64

func (PublicID)String

func (idPublicID) String()string

func (*PublicID)UnmarshalText

func (id *PublicID) UnmarshalText(in []byte)error

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp