blobserver

package module
v0.0.0-...-7974dfc Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(ctx context.Context, ref pk.Ref) blob.Blob

func Register

func Register(s pk.Scheme, f Fetcher)

Register calls are not thread-safe and should only be done on startup.

Types

type FetchFunc

type FetchFunc func(context.Context, pk.Ref) blob.Blob

func (FetchFunc) Fetch

func (fn FetchFunc) Fetch(ctx context.Context, ref pk.Ref) blob.Blob

type Fetcher

type Fetcher interface {
	Fetch(context.Context, pk.Ref) blob.Blob
}

func Lookup

func Lookup(s pk.Scheme) Fetcher

func TransformFetcher

func TransformFetcher(fn TransformFunc) Fetcher

type TransformFunc

type TransformFunc func(ctx context.Context, params string, ref pk.Ref) blob.Blob

Jump to

Keyboard shortcuts

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