2020-08-10 17:15:02 -04:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2020-06-01 11:46:50 -04:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
2023-02-02 17:15:17 -08:00
|
|
|
|
2020-05-08 11:36:28 -04:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
2020-06-01 11:46:50 -04:00
|
|
|
package controller.storage.timestamp.v1;
|
2020-05-08 11:36:28 -04:00
|
|
|
|
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
|
|
2020-08-10 17:15:02 -04:00
|
|
|
option go_package = "github.com/hashicorp/boundary/internal/db/timestamp;timestamp";
|
2022-05-04 11:10:21 -04:00
|
|
|
|
2020-06-01 11:46:50 -04:00
|
|
|
// Timestamp for storage messages. We've defined a new local type wrapper
|
2020-05-08 11:36:28 -04:00
|
|
|
// 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;
|
|
|
|
|
}
|