datakinds

package
v6.0.0-alpha.pub.2 Latest Latest
Warning

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

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

Documentation

Overview

Package datakinds contains the implementations of ldstoretypes.DataKind for flags and segments.

These have their own package because they are used in many places and therefore need to be in a package that doesn't have other things with other dependencies, to avoid cyclic references.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllDataKinds

func AllDataKinds() []ldstoretypes.DataKind

AllDataKinds returns all the supported data StoreDataKinds.

Types

type DataKindInternal

type DataKindInternal interface {
	ldstoretypes.DataKind
	DeserializeFromJSONReader(reader *jreader.Reader) (ldstoretypes.ItemDescriptor, error)
}

DataKindInternal is implemented along with DataKind to provide more efficient jsonstream-based deserialization for our built-in data kinds.

var Features DataKindInternal = featureFlagStoreDataKind{} //nolint:gochecknoglobals

Features is the global StoreDataKind instance for feature flags.

var Segments DataKindInternal = segmentStoreDataKind{} //nolint:gochecknoglobals

Segments is the global StoreDataKind instance for segments.

Jump to

Keyboard shortcuts

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