package
0.0.0-20201102054017-282493799a89
Repository: https://github.com/golangltd/leafltd.git
Documentation: pkg.go.dev

# Packages

Package any is a generated protocol buffer package.
Package duration is a generated protocol buffer package.
Package empty is a generated protocol buffer package.
Package structpb is a generated protocol buffer package.
Package timestamp is a generated protocol buffer package.
Package wrappers is a generated protocol buffer package.

# Functions

AnyMessageName returns the name of the message contained in a google.protobuf.Any message.
Duration converts a durpb.Duration to a time.Duration.
DurationProto converts a time.Duration to a durpb.Duration.
Empty returns a new proto.Message of the type specified in a google.protobuf.Any message.
Is returns true if any value contains a given message type.
MarshalAny takes the protocol buffer and encodes it into google.protobuf.Any.
Timestamp converts a google.protobuf.Timestamp proto to a time.Time.
TimestampNow returns a google.protobuf.Timestamp for the current time.
TimestampProto converts the time.Time to a google.protobuf.Timestamp proto.
TimestampString returns the RFC 3339 string for valid Timestamps.
UnmarshalAny parses the protocol buffer representation in a google.protobuf.Any message and places the decoded result in pb.

# Structs

DynamicAny is a value that can be passed to UnmarshalAny to automatically allocate a proto.Message for the type specified in a google.protobuf.Any message.