cdn

package
v0.0.0-...-786bce8 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 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 struct {
	// contains filtered or unexported fields
}

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

func (*CDN) Close

func (c *CDN) Close() error

Close closes the CDN.

func (*CDN) Get

func (c *CDN) Get(ctx context.Context, pkg string) (cfg Config, err error)

Get fetches the configuration for the given package.

type Config

type Config interface {
	State() *pbgo.PoliciesState
	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