mirror of
https://github.com/status-im/consul.git
synced 2025-02-18 16:46:36 +00:00
16 lines
265 B
Go
16 lines
265 B
Go
package pbutil
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/gogo/protobuf/types"
|
|
)
|
|
|
|
func DurationToProto(d time.Duration) *types.Duration {
|
|
return types.DurationProto(d)
|
|
}
|
|
|
|
func DurationFromProto(d *types.Duration) (time.Duration, error) {
|
|
return types.DurationFromProto(d)
|
|
}
|