ref

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsKnownField

func IsKnownField(field string) bool

IsKnownField reports whether field is part of the user-facing field vocabulary.

func NormalizeFields

func NormalizeFields(fields []string) ([]string, error)

NormalizeFields validates fields, removes duplicates, and returns canonical order.

func ParseReportPinNumber

func ParseReportPinNumber(arg string) (int64, error)

ParseReportPinNumber parses a positive pin number from a flag.

func WireFieldName

func WireFieldName(field string) string

WireFieldName returns the API wire field name for a validated user-facing field.

Types

type PinFetch

type PinFetch struct {
	Pin    PinRef
	Fields []string
}

PinFetch identifies a pin and the fields to fetch for it.

func DedupAndUnion

func DedupAndUnion(fetches []PinFetch) []PinFetch

DedupAndUnion merges fetches for the same pin while preserving first-seen pin order.

func ParsePinFetch

func ParsePinFetch(arg string, defaultFields []string) (PinFetch, error)

ParsePinFetch parses a pin reference with an optional colon-delimited field override.

type PinRef

type PinRef struct {
	Session SessionRef
	Pin     int64
}

PinRef identifies a pin within a Disbug session.

func ParsePin

func ParsePin(arg string) (PinRef, error)

ParsePin parses a Disbug report URL with a pin query parameter.

func (PinRef) RefString

func (r PinRef) RefString() string

RefString returns a stable, human-readable scoped pin reference.

type SessionRef

type SessionRef struct {
	TeamSlug      string
	ProjectID     int64
	SessionNumber int64
}

SessionRef identifies a cloud Disbug session by the same scoped identity used in report URLs.

func ParseSession

func ParseSession(arg string) (SessionRef, error)

ParseSession parses a Disbug report URL.

func (SessionRef) RefString

func (r SessionRef) RefString() string

RefString returns a stable, human-readable scoped session reference.

Jump to

Keyboard shortcuts

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