measurementpbutil

package
v0.0.0-...-030e278 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package measurementpbutil provides utility functions for working with the generated protobuf type Measurement.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func String

func String(m mpb.Measurement) string

func Validate

func Validate(m *mpb.Measurement) error

Validate validates each field of the Measurement against an optional regex provided in the .proto file. It returns nil if all fields are valid and no other errors occurred along the way. Example of how to provide a regex in a .proto file:

string device_id = 1 [(regex) = "^[a-z][a-z0-9+.%~_-]{2,254}$"];

Types

This section is empty.

Jump to

Keyboard shortcuts

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