astralane

package
v0.4.21 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package astralane wraps bundler functionality

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(
	parentCtx context.Context,
	entry *slog.Logger,
) (bundler.Bundler, error)

func TipConnect

func TipConnect(ctx context.Context, entry *slog.Logger, dataC chan<- TipSnapshot, errorC chan<- error)

tipConnect streams the tip distribution

Types

type TipSnapshot

type TipSnapshot struct {
	Time                     time.Time `json:"time"`
	LandedTips25thPercentile uint64    `json:"landed_tips_25th_percentile"`
	LandedTips50thPercentile uint64    `json:"landed_tips_50th_percentile"`
	LandedTips75thPercentile uint64    `json:"landed_tips_75th_percentile"`
	LandedTips95thPercentile uint64    `json:"landed_tips_95th_percentile"`
	LandedTips99thPercentile uint64    `json:"landed_tips_99th_percentile"`
}

TipSnapshot represents the JSON payload received from the WebSocket endpoint.

Source Files

  • astralane.go
  • internal.go
  • tips.go

Jump to

Keyboard shortcuts

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