configservice

package
v0.0.0-...-01cd1ea Latest Latest
Warning

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

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

Documentation

Overview

Package configservice provides an implementation of quotaconfig.Interface which fetches *pb.Policy configs stored with the LUCI Config service. Create an instance suitable for use with the quota library using New.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, cfgSet config.Set, path string) quotaconfig.Interface

New returns a quotaconfig.Interface which fetches known *pb.Policy protos at the given path for the given config set known to the LUCI Config service. Suitable for use with the quota library by calling quota.WithConfig(ctx, configservice.New(ctx, cfgSet, path)). Panics if caching.GlobalCache() returns nil, which shouldn't happen if the redisconn module (required by the quota library) has been initialized.

Types

This section is empty.

Jump to

Keyboard shortcuts

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