cdn

package
v0.0.0-...-83ed39b Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package cdn provides access to the Remote Config CDN.

Package cdn provides access to the Remote Config CDN.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrProductNotSupported is returned when the product is not supported.
	ErrProductNotSupported = errors.New("product not supported")
)

Functions

This section is empty.

Types

type CDN

type CDN interface {
	Get(ctx context.Context, pkg string) (Config, error)
	Close() error
}

CDN provides access to the Remote Config CDN.

func New

func New(env *env.Env, configDBPath string) (CDN, error)

New creates a new CDN and chooses the implementation depending on the environment

type Config

type Config interface {
	Version() string
	Write(dir string) error
}

Config represents a configuration.

Jump to

Keyboard shortcuts

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