Versions in this module Expand all Collapse all v0 v0.9.0 Dec 1, 2024 Changes in this version + const BaseURL + const DaySeqStart + const HourSeqStart + const MinuteSeqStart + var DefaultDatasource = &Datasource + func ChangesetStateAt(ctx context.Context, timestamp time.Time) (ChangesetSeqNum, *State, error) + func Changesets(ctx context.Context, n ChangesetSeqNum) (osm.Changesets, error) + func CurrentChangesetState(ctx context.Context) (ChangesetSeqNum, *State, error) + func CurrentDayState(ctx context.Context) (DaySeqNum, *State, error) + func CurrentHourState(ctx context.Context) (HourSeqNum, *State, error) + func CurrentMinuteState(ctx context.Context) (MinuteSeqNum, *State, error) + func Day(ctx context.Context, n DaySeqNum) (*osm.Change, error) + func DayStateAt(ctx context.Context, timestamp time.Time) (DaySeqNum, *State, error) + func Hour(ctx context.Context, n HourSeqNum) (*osm.Change, error) + func HourStateAt(ctx context.Context, timestamp time.Time) (HourSeqNum, *State, error) + func Minute(ctx context.Context, n MinuteSeqNum) (*osm.Change, error) + func MinuteStateAt(ctx context.Context, timestamp time.Time) (MinuteSeqNum, *State, error) + func NotFound(err error) bool + type ChangesetSeqNum uint64 + func (n ChangesetSeqNum) Dir() string + func (n ChangesetSeqNum) String() string + func (n ChangesetSeqNum) Uint64() uint64 + type Datasource struct + BaseURL string + Client *http.Client + func NewDatasource(client *http.Client) *Datasource + func (ds *Datasource) ChangesetState(ctx context.Context, n ChangesetSeqNum) (*State, error) + func (ds *Datasource) ChangesetStateAt(ctx context.Context, timestamp time.Time) (ChangesetSeqNum, *State, error) + func (ds *Datasource) Changesets(ctx context.Context, n ChangesetSeqNum) (osm.Changesets, error) + func (ds *Datasource) CurrentChangesetState(ctx context.Context) (ChangesetSeqNum, *State, error) + func (ds *Datasource) CurrentDayState(ctx context.Context) (DaySeqNum, *State, error) + func (ds *Datasource) CurrentHourState(ctx context.Context) (HourSeqNum, *State, error) + func (ds *Datasource) CurrentMinuteState(ctx context.Context) (MinuteSeqNum, *State, error) + func (ds *Datasource) Day(ctx context.Context, n DaySeqNum) (*osm.Change, error) + func (ds *Datasource) DayState(ctx context.Context, n DaySeqNum) (*State, error) + func (ds *Datasource) DayStateAt(ctx context.Context, timestamp time.Time) (DaySeqNum, *State, error) + func (ds *Datasource) Hour(ctx context.Context, n HourSeqNum) (*osm.Change, error) + func (ds *Datasource) HourState(ctx context.Context, n HourSeqNum) (*State, error) + func (ds *Datasource) HourStateAt(ctx context.Context, timestamp time.Time) (HourSeqNum, *State, error) + func (ds *Datasource) Minute(ctx context.Context, n MinuteSeqNum) (*osm.Change, error) + func (ds *Datasource) MinuteState(ctx context.Context, n MinuteSeqNum) (*State, error) + func (ds *Datasource) MinuteStateAt(ctx context.Context, timestamp time.Time) (MinuteSeqNum, *State, error) + type DaySeqNum uint64 + func (n DaySeqNum) Dir() string + func (n DaySeqNum) String() string + func (n DaySeqNum) Uint64() uint64 + type HourSeqNum uint64 + func (n HourSeqNum) Dir() string + func (n HourSeqNum) String() string + func (n HourSeqNum) Uint64() uint64 + type MinuteSeqNum uint64 + func (n MinuteSeqNum) Dir() string + func (n MinuteSeqNum) String() string + func (n MinuteSeqNum) Uint64() uint64 + type SeqNum interface + Dir func() string + Uint64 func() uint64 + type State struct + SeqNum uint64 + Timestamp time.Time + TxnMax int + TxnMaxQueried int + func ChangesetState(ctx context.Context, n ChangesetSeqNum) (*State, error) + func DayState(ctx context.Context, n DaySeqNum) (*State, error) + func HourState(ctx context.Context, n HourSeqNum) (*State, error) + func MinuteState(ctx context.Context, n MinuteSeqNum) (*State, error) + type UnexpectedStatusCodeError struct + Code int + URL string + func (e *UnexpectedStatusCodeError) Error() string