routeview

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URLGenerator

type URLGenerator struct {
	// contains filtered or unexported fields
}

URLGenerator uses a GCS archive to identify per-date routeview prefix2as archive URLs.

func NewURLGenerator

func NewURLGenerator(client *storage.Client, prefix string) *URLGenerator

NewURLGenerator creates a new URLGenerator for files under the given GCS prefix URL.

func (*URLGenerator) Next

func (u *URLGenerator) Next(ctx context.Context, date string) (*url.URL, error)

Next returns a routeview prefix2as URL for the named date. If no file is found, the process exits.

Jump to

Keyboard shortcuts

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