Files
threshold/internal/proto/local/controller/storage/timestamp/v1/timestamp.proto
T
Michael Gaffney 5bdd8a46ea Extract timestamp scanners into reusable package (#91)
* Refactor: move Timestamp from static/store to db/timestamp

* Refactor: convert remaining Timestamps to timestamp.Timestamp

* Use new db timestamp
2020-06-01 11:46:50 -04:00

16 lines
534 B
Protocol Buffer

syntax = "proto3";
package controller.storage.timestamp.v1;
option go_package = "github.com/hashicorp/watchtower/internal/db/timestamp;timestamp";
import "google/protobuf/timestamp.proto";
// Timestamp for storage messages. We've defined a new local type wrapper
// of google.protobuf.Timestamp so we can implement sql.Scanner and sql.Valuer
// interfaces. See:
// https://golang.org/pkg/database/sql/#Scanner
// https://golang.org/pkg/database/sql/driver/#Valuer
message Timestamp {
google.protobuf.Timestamp timestamp = 1;
}