package
2.13.5+incompatible
Repository: https://github.com/datacommonsorg/mixer.git
Documentation: pkg.go.dev

# Functions

CamelToSnake converts a camel case string to snake case string.
CheckValidDCIDs checks if DCIDs are valid.
DCLog logs messages with the specified DCLogTag.
EncodeProto encodes a protobuf message into a compressed string.
No description provided by the author
GetAllDescendentSV get all the descendent stat var for an svg.
GetContainedIn returns the contained in relation change given two types.
GetFacet derives the facet from a source series.
GetFacetID retrieves a hash string for a given protobuf message.
GetMissingStrings returns strings from the wantStrings that are missing gotStrings.
HasCollectionCache decides whether the Bigtable collection cache exists for given ancestor and child type.
KeysToSlice stores the keys of a map in a slice.
KeyToDcid ..
MapsClient gets the client for Maps API.
MergeDedupe merges a list of string lists and remove duplicate elements.
MergeMaps returns a new map by merging the specified maps.
PrintMemUsage outputs the current, total and OS memory being used.
RandomString creates a random string with 16 runes.
No description provided by the author
RemoveKeyPrefix removes the prefix of a big query key.
Sample constructs a sampled protobuf message based on the sampling strategy.
No description provided by the author
SnakeToCamel converts a snake case string to camel case string.
StringContainedIn returns true if TARGET is contained in STRS.
StringList formats a list of strings into a comma-separated list with each surrounded with quotes.
StringListIntersection finds common strings among a list of string lists.
StringSetToSlice is a helper to convert a string set to a string slice.
TimeTrack is used to track function execution time.
Unzip compresses the given content using gzip.
UnzipAndDecode decompresses the given content using gzip and decodes it from base64.
Zip compresses the given content using gzip.
ZipAndEncode compresses the given content using gzip and encodes it in base64.

# Constants

Enum values for different log types.
String to represent in arc direction.
String to represent out arc direction.
LimitFactor is the amount to multiply the limit by to make sure certain triples are returned by the BQ query.
Maps API key ID.
Mixer API key.
SQLDriverMySQL = 2.
SQLDriverSQLite = 1.
SQLDriverUnknown = 0.
TextType represents text type.

# Structs

No description provided by the author
PlaceStatVar holds a place and a stat var dcid.
SamplingStrategy represents the strategy to sample a JSON object.
TypePair represents two types that are related.

# Type aliases

Define the DCLogTag enum.
SQLDriver represents the type of SQL driver to use.