Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeTimeout ¶
DecodeTimeout parses a string associated with the "grpc-timeout" header. Note this will accept all valid gRPC units including microseconds and nanoseconds, which EncodeTimeout avoids. This is specified in:
https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests
func EncodeTimeout ¶
EncodeTimeout encodes the duration to the format grpc-timeout header accepts. This is copied from the gRPC-Go implementation, with two branches of the original six branches removed, leaving the four you see for milliseconds, seconds, minutes, and hours. This code will not encode timeouts less than one millisecond. See:
https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests
Types ¶
This section is empty.