Documentation ¶
Index ¶
- Constants
- func Any(msg proto.Message) (*any.Any, error)
- func Duration(d time.Duration) *duration.Duration
- func FromAny(m *any.Any) (proto.Message, error)
- func FromDuration(dur *duration.Duration) time.Duration
- func FromTimestamp(t *timestamp.Timestamp) time.Time
- func FromTypeURL(typeURL string) (proto.Message, error)
- func MessageTypeFromTypeURL(typeURL string) string
- func MessageTypeName(msg proto.Message) string
- func Timestamp(t time.Time) *timestamp.Timestamp
- func TypeURL(msg proto.Message) string
Constants ¶
View Source
const TypeURLPrefix = "type.googleapis.com/"
TypeURLPrefix is the type url prefix for type urls.
Variables ¶
This section is empty.
Functions ¶
func FromDuration ¶
FromDuration returns a time.Duration.
func FromTimestamp ¶
FromTimestamp returns a time.Time.
NOTE: protobuf timestamps are always transmitted as UTC.
func FromTypeURL ¶
FromTypeURL returns a message from the global types proto registry.
func MessageTypeFromTypeURL ¶
MessageTypeFromTypeURL returns the message type from a given any type url.
func MessageTypeName ¶
MessageTypeName returns the message type name for a given message.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.