gofmt vendored files
This commit is contained in:
parent
cc95ec83e7
commit
0111ec3247
2 changed files with 28 additions and 35 deletions
2
vendor/github.com/beorn7/perks/quantile/stream.go
generated
vendored
2
vendor/github.com/beorn7/perks/quantile/stream.go
generated
vendored
|
@ -9,7 +9,7 @@
|
||||||
//
|
//
|
||||||
// For more detailed information about the algorithm used, see:
|
// For more detailed information about the algorithm used, see:
|
||||||
//
|
//
|
||||||
// Effective Computation of Biased Quantiles over Data Streams
|
// # Effective Computation of Biased Quantiles over Data Streams
|
||||||
//
|
//
|
||||||
// http://www.cs.rutgers.edu/~muthu/bquant.pdf
|
// http://www.cs.rutgers.edu/~muthu/bquant.pdf
|
||||||
package quantile
|
package quantile
|
||||||
|
|
61
vendor/google.golang.org/protobuf/types/known/timestamppb/timestamp.pb.go
generated
vendored
61
vendor/google.golang.org/protobuf/types/known/timestamppb/timestamp.pb.go
generated
vendored
|
@ -36,8 +36,7 @@
|
||||||
// The Timestamp message represents a timestamp,
|
// The Timestamp message represents a timestamp,
|
||||||
// an instant in time since the Unix epoch (January 1st, 1970).
|
// an instant in time since the Unix epoch (January 1st, 1970).
|
||||||
//
|
//
|
||||||
//
|
// # Conversion to a Go Time
|
||||||
// Conversion to a Go Time
|
|
||||||
//
|
//
|
||||||
// The AsTime method can be used to convert a Timestamp message to a
|
// The AsTime method can be used to convert a Timestamp message to a
|
||||||
// standard Go time.Time value in UTC:
|
// standard Go time.Time value in UTC:
|
||||||
|
@ -59,8 +58,7 @@
|
||||||
// ... // handle error
|
// ... // handle error
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
//
|
// # Conversion from a Go Time
|
||||||
// Conversion from a Go Time
|
|
||||||
//
|
//
|
||||||
// The timestamppb.New function can be used to construct a Timestamp message
|
// The timestamppb.New function can be used to construct a Timestamp message
|
||||||
// from a standard Go time.Time value:
|
// from a standard Go time.Time value:
|
||||||
|
@ -72,7 +70,6 @@
|
||||||
//
|
//
|
||||||
// ts := timestamppb.Now()
|
// ts := timestamppb.Now()
|
||||||
// ... // make use of ts as a *timestamppb.Timestamp
|
// ... // make use of ts as a *timestamppb.Timestamp
|
||||||
//
|
|
||||||
package timestamppb
|
package timestamppb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -101,52 +98,50 @@ import (
|
||||||
//
|
//
|
||||||
// Example 1: Compute Timestamp from POSIX `time()`.
|
// Example 1: Compute Timestamp from POSIX `time()`.
|
||||||
//
|
//
|
||||||
// Timestamp timestamp;
|
// Timestamp timestamp;
|
||||||
// timestamp.set_seconds(time(NULL));
|
// timestamp.set_seconds(time(NULL));
|
||||||
// timestamp.set_nanos(0);
|
// timestamp.set_nanos(0);
|
||||||
//
|
//
|
||||||
// Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
// Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
||||||
//
|
//
|
||||||
// struct timeval tv;
|
// struct timeval tv;
|
||||||
// gettimeofday(&tv, NULL);
|
// gettimeofday(&tv, NULL);
|
||||||
//
|
//
|
||||||
// Timestamp timestamp;
|
// Timestamp timestamp;
|
||||||
// timestamp.set_seconds(tv.tv_sec);
|
// timestamp.set_seconds(tv.tv_sec);
|
||||||
// timestamp.set_nanos(tv.tv_usec * 1000);
|
// timestamp.set_nanos(tv.tv_usec * 1000);
|
||||||
//
|
//
|
||||||
// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
||||||
//
|
//
|
||||||
// FILETIME ft;
|
// FILETIME ft;
|
||||||
// GetSystemTimeAsFileTime(&ft);
|
// GetSystemTimeAsFileTime(&ft);
|
||||||
// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
||||||
//
|
//
|
||||||
// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
||||||
// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
||||||
// Timestamp timestamp;
|
// Timestamp timestamp;
|
||||||
// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
||||||
// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
||||||
//
|
//
|
||||||
// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
||||||
//
|
//
|
||||||
// long millis = System.currentTimeMillis();
|
// long millis = System.currentTimeMillis();
|
||||||
//
|
|
||||||
// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
|
||||||
// .setNanos((int) ((millis % 1000) * 1000000)).build();
|
|
||||||
//
|
//
|
||||||
|
// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
||||||
|
// .setNanos((int) ((millis % 1000) * 1000000)).build();
|
||||||
//
|
//
|
||||||
// Example 5: Compute Timestamp from Java `Instant.now()`.
|
// Example 5: Compute Timestamp from Java `Instant.now()`.
|
||||||
//
|
//
|
||||||
// Instant now = Instant.now();
|
// Instant now = Instant.now();
|
||||||
//
|
|
||||||
// Timestamp timestamp =
|
|
||||||
// Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
|
||||||
// .setNanos(now.getNano()).build();
|
|
||||||
//
|
//
|
||||||
|
// Timestamp timestamp =
|
||||||
|
// Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
||||||
|
// .setNanos(now.getNano()).build();
|
||||||
//
|
//
|
||||||
// Example 6: Compute Timestamp from current time in Python.
|
// Example 6: Compute Timestamp from current time in Python.
|
||||||
//
|
//
|
||||||
// timestamp = Timestamp()
|
// timestamp = Timestamp()
|
||||||
// timestamp.GetCurrentTime()
|
// timestamp.GetCurrentTime()
|
||||||
//
|
//
|
||||||
// # JSON Mapping
|
// # JSON Mapping
|
||||||
//
|
//
|
||||||
|
@ -174,8 +169,6 @@ import (
|
||||||
// the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
// the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
||||||
// http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
// http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
||||||
// ) to obtain a formatter capable of generating timestamps in this format.
|
// ) to obtain a formatter capable of generating timestamps in this format.
|
||||||
//
|
|
||||||
//
|
|
||||||
type Timestamp struct {
|
type Timestamp struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
|
|
Loading…
Reference in a new issue