proto

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Library for common gRPC protobuf-related tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDurationFromMs

func GetDurationFromMs(ms int64) *duration.Duration

func GetMsFromDuration

func GetMsFromDuration(d *duration.Duration) int64

func GetSha256

func GetSha256(pb proto.Message) (string, int64, error)

GetProtoSha256 returns the SHA-256 digest of the wire format of any protobuf message and the length in bytes of the message, or an error.

func GetTimeFromTimestamp

func GetTimeFromTimestamp(ts *timestamp.Timestamp) time.Time

func GetTimestampFromTime

func GetTimestampFromTime(t time.Time) *timestamp.Timestamp

Types

This section is empty.

Jump to

Keyboard shortcuts

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