go,proto: Move eventsapi schema into a separate repository.

This results in less weird contortions and less opportunity for dependency drift from consumers of Dolt.
This commit is contained in:
Aaron Son
2025-07-25 13:03:49 -07:00
parent 0707c41bf2
commit f19ebfd1df
75 changed files with 306 additions and 3155 deletions
+210 -277
View File
@@ -8140,6 +8140,215 @@ SOFTWARE.
= LICENSE.txt 75cd5500580317e758b5e984e017524dc961140e4889f7d427f85e41 =
================================================================================
================================================================================
= github.com/dolthub/eventsapi_schema licensed under: =
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
= LICENSE 75cd5500580317e758b5e984e017524dc961140e4889f7d427f85e41 =
================================================================================
================================================================================
= github.com/dolthub/flatbuffers/v23 licensed under: =
@@ -13109,283 +13318,7 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
------------------
Files: gzhttp/*
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2016-2017 The New York Times Company
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
------------------
Files: s2/cmd/internal/readahead/*
The MIT License (MIT)
Copyright (c) 2015 Klaus Post
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
---------------------
Files: snappy/*
Files: internal/snapref/*
Copyright (c) 2011 The Snappy-Go Authors. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-----------------
Files: s2/cmd/internal/filepathx/*
Copyright 2016 The filepathx Authors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
= LICENSE ab09e77acafc29821ababe88d617e81bf26ea8aa6f21f3ca9b86de18 =
= LICENSE b6f05c0b9dba1bb0e91a34890d46579fbbc42d0b80de9ce3194d06f3 =
================================================================================
================================================================================
+1 -1
View File
@@ -26,13 +26,13 @@ import (
"github.com/dolthub/vitess/go/vt/sqlparser"
"github.com/fatih/color"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/events"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
config "github.com/dolthub/dolt/go/libraries/utils/config"
"github.com/dolthub/dolt/go/store/nbs"
"github.com/dolthub/dolt/go/store/types"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
func IsHelp(str string) bool {
+2 -2
View File
@@ -19,16 +19,16 @@ import (
"encoding/json"
"strings"
"github.com/dolthub/dolt/go/store/types"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/dbfactory"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/env/actions"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/store/datas/pull"
"github.com/dolthub/dolt/go/store/types"
)
var backupDocs = cli.CommandDocumentationContent{
+1 -1
View File
@@ -23,12 +23,12 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands/engine"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
ref2 "github.com/dolthub/dolt/go/libraries/doltcore/ref"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/libraries/utils/iohelp"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
const (
+1 -1
View File
@@ -30,13 +30,13 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/ref"
"github.com/dolthub/dolt/go/libraries/doltcore/sqle/sqlfmt"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/libraries/utils/set"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var branchDocs = cli.CommandDocumentationContent{
+1 -1
View File
@@ -27,13 +27,13 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands/engine"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/env/actions"
"github.com/dolthub/dolt/go/libraries/doltcore/ref"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/libraries/utils/filesys"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var checkoutDocs = cli.CommandDocumentationContent{
+1 -1
View File
@@ -24,11 +24,11 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/branch_control"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/store/util/outputpager"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var cherryPickDocs = cli.CommandDocumentationContent{
+3 -3
View File
@@ -20,20 +20,20 @@ import (
"path"
"strings"
"github.com/dolthub/dolt/go/libraries/doltcore/dconfig"
"github.com/dolthub/dolt/go/store/types"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/creds"
"github.com/dolthub/dolt/go/libraries/doltcore/dbfactory"
"github.com/dolthub/dolt/go/libraries/doltcore/dconfig"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/env/actions"
"github.com/dolthub/dolt/go/libraries/events"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/libraries/utils/earl"
"github.com/dolthub/dolt/go/store/types"
)
var cloneDocs = cli.CommandDocumentationContent{
+1 -1
View File
@@ -28,11 +28,11 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/table/untyped/tabular"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/libraries/utils/iohelp"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
type mergeStatus struct {
+1 -1
View File
@@ -23,9 +23,9 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var resDocumentation = cli.CommandDocumentationContent{
+1 -1
View File
@@ -24,13 +24,13 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
remotesapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/remotesapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/creds"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/grpcendpoint"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/libraries/utils/config"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var checkShortDesc = "Check authenticating with a credential keypair against a doltremoteapi."
+1 -1
View File
@@ -25,7 +25,6 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
remotesapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/remotesapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/creds"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
@@ -33,6 +32,7 @@ import (
"github.com/dolthub/dolt/go/libraries/doltcore/grpcendpoint"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/libraries/utils/config"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var importDocs = cli.CommandDocumentationContent{
+1 -1
View File
@@ -22,11 +22,11 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/creds"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/env/actions"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var lsDocs = cli.CommandDocumentationContent{
+2 -1
View File
@@ -17,10 +17,11 @@ package credcmds
import (
"context"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/creds"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/env/actions"
+1 -1
View File
@@ -21,10 +21,10 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/env/actions"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var rmDocs = cli.CommandDocumentationContent{
+2 -1
View File
@@ -17,10 +17,11 @@ package credcmds
import (
"context"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/creds"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/env/actions"
+1 -1
View File
@@ -39,9 +39,9 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands/engine"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
type DebugCmd struct {
+1 -1
View File
@@ -32,7 +32,6 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/diff"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
@@ -43,6 +42,7 @@ import (
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/libraries/utils/iohelp"
"github.com/dolthub/dolt/go/libraries/utils/set"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
type diffOutput int
+1 -1
View File
@@ -31,7 +31,6 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands/engine"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/mvdata"
@@ -42,6 +41,7 @@ import (
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/libraries/utils/filesys"
"github.com/dolthub/dolt/go/libraries/utils/iohelp"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
const (
+1 -1
View File
@@ -25,9 +25,9 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var fetchDocs = cli.CommandDocumentationContent{
+1 -1
View File
@@ -27,7 +27,6 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands/engine"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/rebase"
@@ -37,6 +36,7 @@ import (
"github.com/dolthub/dolt/go/libraries/doltcore/table/editor"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/store/hash"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
const (
+1 -1
View File
@@ -22,7 +22,6 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/dbfactory"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
@@ -30,6 +29,7 @@ import (
"github.com/dolthub/dolt/go/libraries/utils/filesys"
"github.com/dolthub/dolt/go/store/chunks"
"github.com/dolthub/dolt/go/store/nbs"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var gcDocs = cli.CommandDocumentationContent{
+1 -1
View File
@@ -28,11 +28,11 @@ import (
"github.com/gocraft/dbr/v2/dialect"
"github.com/dolthub/dolt/go/cmd/dolt/cli"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/merge"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/store/util/outputpager"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var logDocs = cli.CommandDocumentationContent{
+1 -1
View File
@@ -26,7 +26,6 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
remotesapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/remotesapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/creds"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
@@ -34,6 +33,7 @@ import (
"github.com/dolthub/dolt/go/libraries/doltcore/grpcendpoint"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/libraries/utils/config"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
const (
+1 -1
View File
@@ -24,10 +24,10 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var lsDocs = cli.CommandDocumentationContent{
+1 -1
View File
@@ -31,7 +31,6 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands/engine"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/diff"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
@@ -40,6 +39,7 @@ import (
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/libraries/utils/config"
"github.com/dolthub/dolt/go/store/util/outputpager"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var mergeDocs = cli.CommandDocumentationContent{
+1 -1
View File
@@ -22,9 +22,9 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var mergeBaseDocs = cli.CommandDocumentationContent{
+2 -2
View File
@@ -18,14 +18,14 @@ import (
"context"
"os"
"github.com/dolthub/dolt/go/store/types"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/migrate"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/store/types"
)
const (
+1 -1
View File
@@ -29,11 +29,11 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/dbfactory"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/libraries/utils/config"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var profileDocs = cli.CommandDocumentationContent{
+1 -1
View File
@@ -27,13 +27,13 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/env/actions"
"github.com/dolthub/dolt/go/libraries/doltcore/sqle/dprocedures"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/libraries/utils/config"
"github.com/dolthub/dolt/go/store/util/outputpager"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var pullDocs = cli.CommandDocumentationContent{
+1 -1
View File
@@ -31,12 +31,12 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/env/actions"
"github.com/dolthub/dolt/go/libraries/doltcore/remotestorage"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/store/datas/pull"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var pushDocs = cli.CommandDocumentationContent{
+1 -1
View File
@@ -26,7 +26,6 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/dconfig"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/rebase"
@@ -35,6 +34,7 @@ import (
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/libraries/utils/config"
"github.com/dolthub/dolt/go/libraries/utils/editor"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var rebaseDocs = cli.CommandDocumentationContent{
+1 -1
View File
@@ -25,10 +25,10 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/store/util/outputpager"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var reflogDocs = cli.CommandDocumentationContent{
+1 -1
View File
@@ -28,10 +28,10 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands/engine"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/dbfactory"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var ErrInvalidPort = errors.New("invalid port")
+2 -2
View File
@@ -21,15 +21,15 @@ import (
"os"
"strings"
"github.com/dolthub/dolt/go/libraries/doltcore/table/editor"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
dsqle "github.com/dolthub/dolt/go/libraries/doltcore/sqle"
"github.com/dolthub/dolt/go/libraries/doltcore/table/editor"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
)
+1 -1
View File
@@ -27,7 +27,6 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb/durable"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
@@ -42,6 +41,7 @@ import (
"github.com/dolthub/dolt/go/libraries/utils/funcitr"
"github.com/dolthub/dolt/go/libraries/utils/set"
"github.com/dolthub/dolt/go/store/types"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
const (
+1 -1
View File
@@ -22,13 +22,13 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/env/actions"
dsqle "github.com/dolthub/dolt/go/libraries/doltcore/sqle"
"github.com/dolthub/dolt/go/libraries/doltcore/table/editor"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var tblSchemaDocs = cli.CommandDocumentationContent{
+1 -1
View File
@@ -26,13 +26,13 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands/engine"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/store/hash"
"github.com/dolthub/dolt/go/store/types"
"github.com/dolthub/dolt/go/store/util/outputpager"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var hashRegex = regexp.MustCompile(`^#?[0-9a-v]{32}$`)
+1 -1
View File
@@ -39,7 +39,6 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands/engine"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
dsqle "github.com/dolthub/dolt/go/libraries/doltcore/sqle"
@@ -47,6 +46,7 @@ import (
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/libraries/utils/iohelp"
"github.com/dolthub/dolt/go/libraries/utils/osutil"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var sqlDocs = cli.CommandDocumentationContent{
+1 -1
View File
@@ -43,7 +43,6 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands"
"github.com/dolthub/dolt/go/cmd/dolt/commands/engine"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
remotesapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/remotesapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/dconfig"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
@@ -61,6 +60,7 @@ import (
"github.com/dolthub/dolt/go/libraries/utils/filesys"
"github.com/dolthub/dolt/go/libraries/utils/svcs"
"github.com/dolthub/dolt/go/store/chunks"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
const (
+1 -1
View File
@@ -28,12 +28,12 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/servercfg"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/libraries/utils/filesys"
"github.com/dolthub/dolt/go/libraries/utils/svcs"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
const (
+1 -1
View File
@@ -27,11 +27,11 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/ref"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
const (
+1 -1
View File
@@ -25,11 +25,11 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/sqle/dsess"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
// printData structure is used to pass parsed status data to the print function
+1 -1
View File
@@ -26,10 +26,10 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/store/datas"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
type tagInfo struct {
+2 -1
View File
@@ -19,9 +19,10 @@ import (
"fmt"
"io"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
)
+1 -1
View File
@@ -26,7 +26,6 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/commands"
"github.com/dolthub/dolt/go/cmd/dolt/commands/engine"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/mvdata"
@@ -36,6 +35,7 @@ import (
"github.com/dolthub/dolt/go/libraries/utils/argparser"
"github.com/dolthub/dolt/go/libraries/utils/filesys"
"github.com/dolthub/dolt/go/libraries/utils/iohelp"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var exportDocs = cli.CommandDocumentationContent{
+1 -1
View File
@@ -39,7 +39,6 @@ import (
"github.com/dolthub/dolt/go/cmd/dolt/commands/engine"
"github.com/dolthub/dolt/go/cmd/dolt/commands/schcmds"
"github.com/dolthub/dolt/go/cmd/dolt/errhand"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/mvdata"
@@ -53,6 +52,7 @@ import (
"github.com/dolthub/dolt/go/libraries/utils/funcitr"
"github.com/dolthub/dolt/go/libraries/utils/iohelp"
"github.com/dolthub/dolt/go/store/types"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
const (
+2 -1
View File
@@ -18,9 +18,10 @@ import (
"context"
"fmt"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/utils/argparser"
)
+1 -1
View File
@@ -19,7 +19,7 @@ import (
"fmt"
"io"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/cmd/dolt/cli"
"github.com/dolthub/dolt/go/cmd/dolt/commands"
@@ -1,202 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -1,18 +0,0 @@
module github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi
go 1.23.0
toolchain go1.24.0
require (
google.golang.org/grpc v1.56.3
google.golang.org/protobuf v1.30.0
)
require (
github.com/golang/protobuf v1.5.3 // indirect
golang.org/x/net v0.38.0 // indirect
golang.org/x/sys v0.31.0 // indirect
golang.org/x/text v0.23.0 // indirect
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
)
@@ -1,21 +0,0 @@
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8=
golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8=
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY=
golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 h1:KpwkzHKEF7B9Zxg18WzOa7djJ+Ha5DzthMyZYQfEn2A=
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU=
google.golang.org/grpc v1.56.3 h1:8I4C0Yq1EjstUzUJzpcRVbuYA2mODtEmpWiQoN/b2nc=
google.golang.org/grpc v1.56.3/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng=
google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
@@ -1,499 +0,0 @@
// Copyright 2020 Dolthub, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// WARNING: This file was is automatically generated. DO NOT EDIT BY HAND.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc v6.31.1
// source: dolt/services/eventsapi/v1alpha1/client_event.proto
package eventsapi
import (
reflect "reflect"
sync "sync"
unsafe "unsafe"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type ClientEventAttribute struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id AttributeID `protobuf:"varint,1,opt,name=id,proto3,enum=dolt.services.eventsapi.v1alpha1.AttributeID" json:"id,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ClientEventAttribute) Reset() {
*x = ClientEventAttribute{}
mi := &file_dolt_services_eventsapi_v1alpha1_client_event_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ClientEventAttribute) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClientEventAttribute) ProtoMessage() {}
func (x *ClientEventAttribute) ProtoReflect() protoreflect.Message {
mi := &file_dolt_services_eventsapi_v1alpha1_client_event_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ClientEventAttribute.ProtoReflect.Descriptor instead.
func (*ClientEventAttribute) Descriptor() ([]byte, []int) {
return file_dolt_services_eventsapi_v1alpha1_client_event_proto_rawDescGZIP(), []int{0}
}
func (x *ClientEventAttribute) GetId() AttributeID {
if x != nil {
return x.Id
}
return AttributeID_ATTRIBUTE_UNSPECIFIED
}
func (x *ClientEventAttribute) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
type ClientEventMetric struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to MetricOneof:
//
// *ClientEventMetric_Duration
// *ClientEventMetric_Count
MetricOneof isClientEventMetric_MetricOneof `protobuf_oneof:"metric_oneof"`
MetricId MetricID `protobuf:"varint,100,opt,name=metric_id,json=metricId,proto3,enum=dolt.services.eventsapi.v1alpha1.MetricID" json:"metric_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ClientEventMetric) Reset() {
*x = ClientEventMetric{}
mi := &file_dolt_services_eventsapi_v1alpha1_client_event_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ClientEventMetric) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClientEventMetric) ProtoMessage() {}
func (x *ClientEventMetric) ProtoReflect() protoreflect.Message {
mi := &file_dolt_services_eventsapi_v1alpha1_client_event_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ClientEventMetric.ProtoReflect.Descriptor instead.
func (*ClientEventMetric) Descriptor() ([]byte, []int) {
return file_dolt_services_eventsapi_v1alpha1_client_event_proto_rawDescGZIP(), []int{1}
}
func (x *ClientEventMetric) GetMetricOneof() isClientEventMetric_MetricOneof {
if x != nil {
return x.MetricOneof
}
return nil
}
func (x *ClientEventMetric) GetDuration() *durationpb.Duration {
if x != nil {
if x, ok := x.MetricOneof.(*ClientEventMetric_Duration); ok {
return x.Duration
}
}
return nil
}
func (x *ClientEventMetric) GetCount() int32 {
if x != nil {
if x, ok := x.MetricOneof.(*ClientEventMetric_Count); ok {
return x.Count
}
}
return 0
}
func (x *ClientEventMetric) GetMetricId() MetricID {
if x != nil {
return x.MetricId
}
return MetricID_METRIC_UNSPECIFIED
}
type isClientEventMetric_MetricOneof interface {
isClientEventMetric_MetricOneof()
}
type ClientEventMetric_Duration struct {
Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3,oneof"`
}
type ClientEventMetric_Count struct {
Count int32 `protobuf:"varint,2,opt,name=count,proto3,oneof"`
}
func (*ClientEventMetric_Duration) isClientEventMetric_MetricOneof() {}
func (*ClientEventMetric_Count) isClientEventMetric_MetricOneof() {}
type ClientEvent struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
Type ClientEventType `protobuf:"varint,4,opt,name=type,proto3,enum=dolt.services.eventsapi.v1alpha1.ClientEventType" json:"type,omitempty"`
Attributes []*ClientEventAttribute `protobuf:"bytes,5,rep,name=attributes,proto3" json:"attributes,omitempty"`
Metrics []*ClientEventMetric `protobuf:"bytes,6,rep,name=metrics,proto3" json:"metrics,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ClientEvent) Reset() {
*x = ClientEvent{}
mi := &file_dolt_services_eventsapi_v1alpha1_client_event_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ClientEvent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClientEvent) ProtoMessage() {}
func (x *ClientEvent) ProtoReflect() protoreflect.Message {
mi := &file_dolt_services_eventsapi_v1alpha1_client_event_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ClientEvent.ProtoReflect.Descriptor instead.
func (*ClientEvent) Descriptor() ([]byte, []int) {
return file_dolt_services_eventsapi_v1alpha1_client_event_proto_rawDescGZIP(), []int{2}
}
func (x *ClientEvent) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *ClientEvent) GetStartTime() *timestamppb.Timestamp {
if x != nil {
return x.StartTime
}
return nil
}
func (x *ClientEvent) GetEndTime() *timestamppb.Timestamp {
if x != nil {
return x.EndTime
}
return nil
}
func (x *ClientEvent) GetType() ClientEventType {
if x != nil {
return x.Type
}
return ClientEventType_TYPE_UNSPECIFIED
}
func (x *ClientEvent) GetAttributes() []*ClientEventAttribute {
if x != nil {
return x.Attributes
}
return nil
}
func (x *ClientEvent) GetMetrics() []*ClientEventMetric {
if x != nil {
return x.Metrics
}
return nil
}
type LogEventsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
MachineId string `protobuf:"bytes,1,opt,name=machine_id,json=machineId,proto3" json:"machine_id,omitempty"`
Extra string `protobuf:"bytes,2,opt,name=extra,proto3" json:"extra,omitempty"`
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
Platform Platform `protobuf:"varint,4,opt,name=platform,proto3,enum=dolt.services.eventsapi.v1alpha1.Platform" json:"platform,omitempty"`
Events []*ClientEvent `protobuf:"bytes,5,rep,name=events,proto3" json:"events,omitempty"`
App AppID `protobuf:"varint,6,opt,name=app,proto3,enum=dolt.services.eventsapi.v1alpha1.AppID" json:"app,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *LogEventsRequest) Reset() {
*x = LogEventsRequest{}
mi := &file_dolt_services_eventsapi_v1alpha1_client_event_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *LogEventsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LogEventsRequest) ProtoMessage() {}
func (x *LogEventsRequest) ProtoReflect() protoreflect.Message {
mi := &file_dolt_services_eventsapi_v1alpha1_client_event_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LogEventsRequest.ProtoReflect.Descriptor instead.
func (*LogEventsRequest) Descriptor() ([]byte, []int) {
return file_dolt_services_eventsapi_v1alpha1_client_event_proto_rawDescGZIP(), []int{3}
}
func (x *LogEventsRequest) GetMachineId() string {
if x != nil {
return x.MachineId
}
return ""
}
func (x *LogEventsRequest) GetExtra() string {
if x != nil {
return x.Extra
}
return ""
}
func (x *LogEventsRequest) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *LogEventsRequest) GetPlatform() Platform {
if x != nil {
return x.Platform
}
return Platform_PLATFORM_UNSPECIFIED
}
func (x *LogEventsRequest) GetEvents() []*ClientEvent {
if x != nil {
return x.Events
}
return nil
}
func (x *LogEventsRequest) GetApp() AppID {
if x != nil {
return x.App
}
return AppID_APP_ID_UNSPECIFIED
}
type LogEventsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *LogEventsResponse) Reset() {
*x = LogEventsResponse{}
mi := &file_dolt_services_eventsapi_v1alpha1_client_event_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *LogEventsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LogEventsResponse) ProtoMessage() {}
func (x *LogEventsResponse) ProtoReflect() protoreflect.Message {
mi := &file_dolt_services_eventsapi_v1alpha1_client_event_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LogEventsResponse.ProtoReflect.Descriptor instead.
func (*LogEventsResponse) Descriptor() ([]byte, []int) {
return file_dolt_services_eventsapi_v1alpha1_client_event_proto_rawDescGZIP(), []int{4}
}
var File_dolt_services_eventsapi_v1alpha1_client_event_proto protoreflect.FileDescriptor
const file_dolt_services_eventsapi_v1alpha1_client_event_proto_rawDesc = "" +
"\n" +
"3dolt/services/eventsapi/v1alpha1/client_event.proto\x12 dolt.services.eventsapi.v1alpha1\x1a6dolt/services/eventsapi/v1alpha1/event_constants.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"k\n" +
"\x14ClientEventAttribute\x12=\n" +
"\x02id\x18\x01 \x01(\x0e2-.dolt.services.eventsapi.v1alpha1.AttributeIDR\x02id\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value\"\xbd\x01\n" +
"\x11ClientEventMetric\x127\n" +
"\bduration\x18\x01 \x01(\v2\x19.google.protobuf.DurationH\x00R\bduration\x12\x16\n" +
"\x05count\x18\x02 \x01(\x05H\x00R\x05count\x12G\n" +
"\tmetric_id\x18d \x01(\x0e2*.dolt.services.eventsapi.v1alpha1.MetricIDR\bmetricIdB\x0e\n" +
"\fmetric_oneof\"\xfd\x02\n" +
"\vClientEvent\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x129\n" +
"\n" +
"start_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\tstartTime\x125\n" +
"\bend_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\aendTime\x12E\n" +
"\x04type\x18\x04 \x01(\x0e21.dolt.services.eventsapi.v1alpha1.ClientEventTypeR\x04type\x12V\n" +
"\n" +
"attributes\x18\x05 \x03(\v26.dolt.services.eventsapi.v1alpha1.ClientEventAttributeR\n" +
"attributes\x12M\n" +
"\ametrics\x18\x06 \x03(\v23.dolt.services.eventsapi.v1alpha1.ClientEventMetricR\ametrics\"\xab\x02\n" +
"\x10LogEventsRequest\x12\x1d\n" +
"\n" +
"machine_id\x18\x01 \x01(\tR\tmachineId\x12\x14\n" +
"\x05extra\x18\x02 \x01(\tR\x05extra\x12\x18\n" +
"\aversion\x18\x03 \x01(\tR\aversion\x12F\n" +
"\bplatform\x18\x04 \x01(\x0e2*.dolt.services.eventsapi.v1alpha1.PlatformR\bplatform\x12E\n" +
"\x06events\x18\x05 \x03(\v2-.dolt.services.eventsapi.v1alpha1.ClientEventR\x06events\x129\n" +
"\x03app\x18\x06 \x01(\x0e2'.dolt.services.eventsapi.v1alpha1.AppIDR\x03app\"\x13\n" +
"\x11LogEventsResponse2\x8b\x01\n" +
"\x13ClientEventsService\x12t\n" +
"\tLogEvents\x122.dolt.services.eventsapi.v1alpha1.LogEventsRequest\x1a3.dolt.services.eventsapi.v1alpha1.LogEventsResponseBQZOgithub.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1;eventsapib\x06proto3"
var (
file_dolt_services_eventsapi_v1alpha1_client_event_proto_rawDescOnce sync.Once
file_dolt_services_eventsapi_v1alpha1_client_event_proto_rawDescData []byte
)
func file_dolt_services_eventsapi_v1alpha1_client_event_proto_rawDescGZIP() []byte {
file_dolt_services_eventsapi_v1alpha1_client_event_proto_rawDescOnce.Do(func() {
file_dolt_services_eventsapi_v1alpha1_client_event_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_dolt_services_eventsapi_v1alpha1_client_event_proto_rawDesc), len(file_dolt_services_eventsapi_v1alpha1_client_event_proto_rawDesc)))
})
return file_dolt_services_eventsapi_v1alpha1_client_event_proto_rawDescData
}
var file_dolt_services_eventsapi_v1alpha1_client_event_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_dolt_services_eventsapi_v1alpha1_client_event_proto_goTypes = []any{
(*ClientEventAttribute)(nil), // 0: dolt.services.eventsapi.v1alpha1.ClientEventAttribute
(*ClientEventMetric)(nil), // 1: dolt.services.eventsapi.v1alpha1.ClientEventMetric
(*ClientEvent)(nil), // 2: dolt.services.eventsapi.v1alpha1.ClientEvent
(*LogEventsRequest)(nil), // 3: dolt.services.eventsapi.v1alpha1.LogEventsRequest
(*LogEventsResponse)(nil), // 4: dolt.services.eventsapi.v1alpha1.LogEventsResponse
(AttributeID)(0), // 5: dolt.services.eventsapi.v1alpha1.AttributeID
(*durationpb.Duration)(nil), // 6: google.protobuf.Duration
(MetricID)(0), // 7: dolt.services.eventsapi.v1alpha1.MetricID
(*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp
(ClientEventType)(0), // 9: dolt.services.eventsapi.v1alpha1.ClientEventType
(Platform)(0), // 10: dolt.services.eventsapi.v1alpha1.Platform
(AppID)(0), // 11: dolt.services.eventsapi.v1alpha1.AppID
}
var file_dolt_services_eventsapi_v1alpha1_client_event_proto_depIdxs = []int32{
5, // 0: dolt.services.eventsapi.v1alpha1.ClientEventAttribute.id:type_name -> dolt.services.eventsapi.v1alpha1.AttributeID
6, // 1: dolt.services.eventsapi.v1alpha1.ClientEventMetric.duration:type_name -> google.protobuf.Duration
7, // 2: dolt.services.eventsapi.v1alpha1.ClientEventMetric.metric_id:type_name -> dolt.services.eventsapi.v1alpha1.MetricID
8, // 3: dolt.services.eventsapi.v1alpha1.ClientEvent.start_time:type_name -> google.protobuf.Timestamp
8, // 4: dolt.services.eventsapi.v1alpha1.ClientEvent.end_time:type_name -> google.protobuf.Timestamp
9, // 5: dolt.services.eventsapi.v1alpha1.ClientEvent.type:type_name -> dolt.services.eventsapi.v1alpha1.ClientEventType
0, // 6: dolt.services.eventsapi.v1alpha1.ClientEvent.attributes:type_name -> dolt.services.eventsapi.v1alpha1.ClientEventAttribute
1, // 7: dolt.services.eventsapi.v1alpha1.ClientEvent.metrics:type_name -> dolt.services.eventsapi.v1alpha1.ClientEventMetric
10, // 8: dolt.services.eventsapi.v1alpha1.LogEventsRequest.platform:type_name -> dolt.services.eventsapi.v1alpha1.Platform
2, // 9: dolt.services.eventsapi.v1alpha1.LogEventsRequest.events:type_name -> dolt.services.eventsapi.v1alpha1.ClientEvent
11, // 10: dolt.services.eventsapi.v1alpha1.LogEventsRequest.app:type_name -> dolt.services.eventsapi.v1alpha1.AppID
3, // 11: dolt.services.eventsapi.v1alpha1.ClientEventsService.LogEvents:input_type -> dolt.services.eventsapi.v1alpha1.LogEventsRequest
4, // 12: dolt.services.eventsapi.v1alpha1.ClientEventsService.LogEvents:output_type -> dolt.services.eventsapi.v1alpha1.LogEventsResponse
12, // [12:13] is the sub-list for method output_type
11, // [11:12] is the sub-list for method input_type
11, // [11:11] is the sub-list for extension type_name
11, // [11:11] is the sub-list for extension extendee
0, // [0:11] is the sub-list for field type_name
}
func init() { file_dolt_services_eventsapi_v1alpha1_client_event_proto_init() }
func file_dolt_services_eventsapi_v1alpha1_client_event_proto_init() {
if File_dolt_services_eventsapi_v1alpha1_client_event_proto != nil {
return
}
file_dolt_services_eventsapi_v1alpha1_event_constants_proto_init()
file_dolt_services_eventsapi_v1alpha1_client_event_proto_msgTypes[1].OneofWrappers = []any{
(*ClientEventMetric_Duration)(nil),
(*ClientEventMetric_Count)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_dolt_services_eventsapi_v1alpha1_client_event_proto_rawDesc), len(file_dolt_services_eventsapi_v1alpha1_client_event_proto_rawDesc)),
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_dolt_services_eventsapi_v1alpha1_client_event_proto_goTypes,
DependencyIndexes: file_dolt_services_eventsapi_v1alpha1_client_event_proto_depIdxs,
MessageInfos: file_dolt_services_eventsapi_v1alpha1_client_event_proto_msgTypes,
}.Build()
File_dolt_services_eventsapi_v1alpha1_client_event_proto = out.File
file_dolt_services_eventsapi_v1alpha1_client_event_proto_goTypes = nil
file_dolt_services_eventsapi_v1alpha1_client_event_proto_depIdxs = nil
}
@@ -1,138 +0,0 @@
// Copyright 2020 Dolthub, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// WARNING: This file was is automatically generated. DO NOT EDIT BY HAND.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc v6.31.1
// source: dolt/services/eventsapi/v1alpha1/client_event.proto
package eventsapi
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.64.0 or later.
const _ = grpc.SupportPackageIsVersion9
const (
ClientEventsService_LogEvents_FullMethodName = "/dolt.services.eventsapi.v1alpha1.ClientEventsService/LogEvents"
)
// ClientEventsServiceClient is the client API for ClientEventsService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type ClientEventsServiceClient interface {
LogEvents(ctx context.Context, in *LogEventsRequest, opts ...grpc.CallOption) (*LogEventsResponse, error)
}
type clientEventsServiceClient struct {
cc grpc.ClientConnInterface
}
func NewClientEventsServiceClient(cc grpc.ClientConnInterface) ClientEventsServiceClient {
return &clientEventsServiceClient{cc}
}
func (c *clientEventsServiceClient) LogEvents(ctx context.Context, in *LogEventsRequest, opts ...grpc.CallOption) (*LogEventsResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(LogEventsResponse)
err := c.cc.Invoke(ctx, ClientEventsService_LogEvents_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// ClientEventsServiceServer is the server API for ClientEventsService service.
// All implementations must embed UnimplementedClientEventsServiceServer
// for forward compatibility.
type ClientEventsServiceServer interface {
LogEvents(context.Context, *LogEventsRequest) (*LogEventsResponse, error)
mustEmbedUnimplementedClientEventsServiceServer()
}
// UnimplementedClientEventsServiceServer must be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedClientEventsServiceServer struct{}
func (UnimplementedClientEventsServiceServer) LogEvents(context.Context, *LogEventsRequest) (*LogEventsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method LogEvents not implemented")
}
func (UnimplementedClientEventsServiceServer) mustEmbedUnimplementedClientEventsServiceServer() {}
func (UnimplementedClientEventsServiceServer) testEmbeddedByValue() {}
// UnsafeClientEventsServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ClientEventsServiceServer will
// result in compilation errors.
type UnsafeClientEventsServiceServer interface {
mustEmbedUnimplementedClientEventsServiceServer()
}
func RegisterClientEventsServiceServer(s grpc.ServiceRegistrar, srv ClientEventsServiceServer) {
// If the following call panics, it indicates UnimplementedClientEventsServiceServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
t.testEmbeddedByValue()
}
s.RegisterService(&ClientEventsService_ServiceDesc, srv)
}
func _ClientEventsService_LogEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LogEventsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ClientEventsServiceServer).LogEvents(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: ClientEventsService_LogEvents_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ClientEventsServiceServer).LogEvents(ctx, req.(*LogEventsRequest))
}
return interceptor(ctx, in, info, handler)
}
// ClientEventsService_ServiceDesc is the grpc.ServiceDesc for ClientEventsService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ClientEventsService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "dolt.services.eventsapi.v1alpha1.ClientEventsService",
HandlerType: (*ClientEventsServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "LogEvents",
Handler: _ClientEventsService_LogEvents_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "dolt/services/eventsapi/v1alpha1/client_event.proto",
}
@@ -1,631 +0,0 @@
// Copyright 2020 Dolthub, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// WARNING: This file was is automatically generated. DO NOT EDIT BY HAND.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc v6.31.1
// source: dolt/services/eventsapi/v1alpha1/event_constants.proto
package eventsapi
import (
reflect "reflect"
sync "sync"
unsafe "unsafe"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Platform int32
const (
Platform_PLATFORM_UNSPECIFIED Platform = 0
Platform_LINUX Platform = 1
Platform_WINDOWS Platform = 2
Platform_DARWIN Platform = 3
)
// Enum value maps for Platform.
var (
Platform_name = map[int32]string{
0: "PLATFORM_UNSPECIFIED",
1: "LINUX",
2: "WINDOWS",
3: "DARWIN",
}
Platform_value = map[string]int32{
"PLATFORM_UNSPECIFIED": 0,
"LINUX": 1,
"WINDOWS": 2,
"DARWIN": 3,
}
)
func (x Platform) Enum() *Platform {
p := new(Platform)
*p = x
return p
}
func (x Platform) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Platform) Descriptor() protoreflect.EnumDescriptor {
return file_dolt_services_eventsapi_v1alpha1_event_constants_proto_enumTypes[0].Descriptor()
}
func (Platform) Type() protoreflect.EnumType {
return &file_dolt_services_eventsapi_v1alpha1_event_constants_proto_enumTypes[0]
}
func (x Platform) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Platform.Descriptor instead.
func (Platform) EnumDescriptor() ([]byte, []int) {
return file_dolt_services_eventsapi_v1alpha1_event_constants_proto_rawDescGZIP(), []int{0}
}
type ClientEventType int32
const (
ClientEventType_TYPE_UNSPECIFIED ClientEventType = 0
ClientEventType_INIT ClientEventType = 1
ClientEventType_STATUS ClientEventType = 2
ClientEventType_ADD ClientEventType = 3
ClientEventType_RESET ClientEventType = 4
ClientEventType_COMMIT ClientEventType = 5
ClientEventType_SQL ClientEventType = 6
ClientEventType_SQL_SERVER ClientEventType = 7
ClientEventType_LOG ClientEventType = 8
ClientEventType_DIFF ClientEventType = 9
ClientEventType_MERGE ClientEventType = 10
ClientEventType_BRANCH ClientEventType = 11
ClientEventType_CHECKOUT ClientEventType = 12
ClientEventType_REMOTE ClientEventType = 13
ClientEventType_PUSH ClientEventType = 14
ClientEventType_PULL ClientEventType = 15
ClientEventType_FETCH ClientEventType = 16
ClientEventType_CLONE ClientEventType = 17
ClientEventType_LOGIN ClientEventType = 18
ClientEventType_VERSION ClientEventType = 19
ClientEventType_CONFIG ClientEventType = 20
ClientEventType_LS ClientEventType = 21
ClientEventType_SCHEMA ClientEventType = 22
ClientEventType_TABLE_IMPORT ClientEventType = 23
ClientEventType_TABLE_EXPORT ClientEventType = 24
ClientEventType_TABLE_CREATE ClientEventType = 25
ClientEventType_TABLE_RM ClientEventType = 26
ClientEventType_TABLE_MV ClientEventType = 27
ClientEventType_TABLE_CP ClientEventType = 28
ClientEventType_TABLE_SELECT ClientEventType = 29
ClientEventType_TABLE_PUT_ROW ClientEventType = 30
ClientEventType_TABLE_RM_ROW ClientEventType = 31
ClientEventType_CREDS_NEW ClientEventType = 32
ClientEventType_CREDS_RM ClientEventType = 33
ClientEventType_CREDS_LS ClientEventType = 34
ClientEventType_CONF_CAT ClientEventType = 35
ClientEventType_CONF_RESOLVE ClientEventType = 36
ClientEventType_REMOTEAPI_GET_REPO_METADATA ClientEventType = 37
ClientEventType_REMOTEAPI_HAS_CHUNKS ClientEventType = 38
ClientEventType_REMOTEAPI_GET_DOWNLOAD_LOCATIONS ClientEventType = 39
ClientEventType_REMOTEAPI_GET_UPLOAD_LOCATIONS ClientEventType = 40
ClientEventType_REMOTEAPI_REBASE ClientEventType = 41
ClientEventType_REMOTEAPI_ROOT ClientEventType = 42
ClientEventType_REMOTEAPI_COMMIT ClientEventType = 43
ClientEventType_REMOTEAPI_LIST_TABLE_FILES ClientEventType = 44
ClientEventType_BLAME ClientEventType = 45
ClientEventType_CREDS_CHECK ClientEventType = 46
ClientEventType_CREDS_USE ClientEventType = 47
ClientEventType_CREDS_IMPORT ClientEventType = 48
ClientEventType_REMOTEAPI_ADD_TABLE_FILES ClientEventType = 49
ClientEventType_MIGRATE ClientEventType = 50
ClientEventType_TAG ClientEventType = 51
ClientEventType_GARBAGE_COLLECTION ClientEventType = 52
ClientEventType_FILTER_BRANCH ClientEventType = 53
ClientEventType_DUMP ClientEventType = 54
ClientEventType_CHERRY_PICK ClientEventType = 55
ClientEventType_STASH ClientEventType = 56
ClientEventType_STASH_CLEAR ClientEventType = 57
ClientEventType_STASH_DROP ClientEventType = 58
ClientEventType_STASH_LIST ClientEventType = 59
ClientEventType_STASH_POP ClientEventType = 60
ClientEventType_SHOW ClientEventType = 61
ClientEventType_PROFILE ClientEventType = 62
ClientEventType_REFLOG ClientEventType = 63
ClientEventType_SQL_SERVER_HEARTBEAT ClientEventType = 64
ClientEventType_REBASE ClientEventType = 65
)
// Enum value maps for ClientEventType.
var (
ClientEventType_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "INIT",
2: "STATUS",
3: "ADD",
4: "RESET",
5: "COMMIT",
6: "SQL",
7: "SQL_SERVER",
8: "LOG",
9: "DIFF",
10: "MERGE",
11: "BRANCH",
12: "CHECKOUT",
13: "REMOTE",
14: "PUSH",
15: "PULL",
16: "FETCH",
17: "CLONE",
18: "LOGIN",
19: "VERSION",
20: "CONFIG",
21: "LS",
22: "SCHEMA",
23: "TABLE_IMPORT",
24: "TABLE_EXPORT",
25: "TABLE_CREATE",
26: "TABLE_RM",
27: "TABLE_MV",
28: "TABLE_CP",
29: "TABLE_SELECT",
30: "TABLE_PUT_ROW",
31: "TABLE_RM_ROW",
32: "CREDS_NEW",
33: "CREDS_RM",
34: "CREDS_LS",
35: "CONF_CAT",
36: "CONF_RESOLVE",
37: "REMOTEAPI_GET_REPO_METADATA",
38: "REMOTEAPI_HAS_CHUNKS",
39: "REMOTEAPI_GET_DOWNLOAD_LOCATIONS",
40: "REMOTEAPI_GET_UPLOAD_LOCATIONS",
41: "REMOTEAPI_REBASE",
42: "REMOTEAPI_ROOT",
43: "REMOTEAPI_COMMIT",
44: "REMOTEAPI_LIST_TABLE_FILES",
45: "BLAME",
46: "CREDS_CHECK",
47: "CREDS_USE",
48: "CREDS_IMPORT",
49: "REMOTEAPI_ADD_TABLE_FILES",
50: "MIGRATE",
51: "TAG",
52: "GARBAGE_COLLECTION",
53: "FILTER_BRANCH",
54: "DUMP",
55: "CHERRY_PICK",
56: "STASH",
57: "STASH_CLEAR",
58: "STASH_DROP",
59: "STASH_LIST",
60: "STASH_POP",
61: "SHOW",
62: "PROFILE",
63: "REFLOG",
64: "SQL_SERVER_HEARTBEAT",
65: "REBASE",
}
ClientEventType_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"INIT": 1,
"STATUS": 2,
"ADD": 3,
"RESET": 4,
"COMMIT": 5,
"SQL": 6,
"SQL_SERVER": 7,
"LOG": 8,
"DIFF": 9,
"MERGE": 10,
"BRANCH": 11,
"CHECKOUT": 12,
"REMOTE": 13,
"PUSH": 14,
"PULL": 15,
"FETCH": 16,
"CLONE": 17,
"LOGIN": 18,
"VERSION": 19,
"CONFIG": 20,
"LS": 21,
"SCHEMA": 22,
"TABLE_IMPORT": 23,
"TABLE_EXPORT": 24,
"TABLE_CREATE": 25,
"TABLE_RM": 26,
"TABLE_MV": 27,
"TABLE_CP": 28,
"TABLE_SELECT": 29,
"TABLE_PUT_ROW": 30,
"TABLE_RM_ROW": 31,
"CREDS_NEW": 32,
"CREDS_RM": 33,
"CREDS_LS": 34,
"CONF_CAT": 35,
"CONF_RESOLVE": 36,
"REMOTEAPI_GET_REPO_METADATA": 37,
"REMOTEAPI_HAS_CHUNKS": 38,
"REMOTEAPI_GET_DOWNLOAD_LOCATIONS": 39,
"REMOTEAPI_GET_UPLOAD_LOCATIONS": 40,
"REMOTEAPI_REBASE": 41,
"REMOTEAPI_ROOT": 42,
"REMOTEAPI_COMMIT": 43,
"REMOTEAPI_LIST_TABLE_FILES": 44,
"BLAME": 45,
"CREDS_CHECK": 46,
"CREDS_USE": 47,
"CREDS_IMPORT": 48,
"REMOTEAPI_ADD_TABLE_FILES": 49,
"MIGRATE": 50,
"TAG": 51,
"GARBAGE_COLLECTION": 52,
"FILTER_BRANCH": 53,
"DUMP": 54,
"CHERRY_PICK": 55,
"STASH": 56,
"STASH_CLEAR": 57,
"STASH_DROP": 58,
"STASH_LIST": 59,
"STASH_POP": 60,
"SHOW": 61,
"PROFILE": 62,
"REFLOG": 63,
"SQL_SERVER_HEARTBEAT": 64,
"REBASE": 65,
}
)
func (x ClientEventType) Enum() *ClientEventType {
p := new(ClientEventType)
*p = x
return p
}
func (x ClientEventType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ClientEventType) Descriptor() protoreflect.EnumDescriptor {
return file_dolt_services_eventsapi_v1alpha1_event_constants_proto_enumTypes[1].Descriptor()
}
func (ClientEventType) Type() protoreflect.EnumType {
return &file_dolt_services_eventsapi_v1alpha1_event_constants_proto_enumTypes[1]
}
func (x ClientEventType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ClientEventType.Descriptor instead.
func (ClientEventType) EnumDescriptor() ([]byte, []int) {
return file_dolt_services_eventsapi_v1alpha1_event_constants_proto_rawDescGZIP(), []int{1}
}
type MetricID int32
const (
MetricID_METRIC_UNSPECIFIED MetricID = 0
MetricID_BYTES_DOWNLOADED MetricID = 1
MetricID_DOWNLOAD_MS_ELAPSED MetricID = 2
MetricID_REMOTEAPI_RPC_ERROR MetricID = 3
)
// Enum value maps for MetricID.
var (
MetricID_name = map[int32]string{
0: "METRIC_UNSPECIFIED",
1: "BYTES_DOWNLOADED",
2: "DOWNLOAD_MS_ELAPSED",
3: "REMOTEAPI_RPC_ERROR",
}
MetricID_value = map[string]int32{
"METRIC_UNSPECIFIED": 0,
"BYTES_DOWNLOADED": 1,
"DOWNLOAD_MS_ELAPSED": 2,
"REMOTEAPI_RPC_ERROR": 3,
}
)
func (x MetricID) Enum() *MetricID {
p := new(MetricID)
*p = x
return p
}
func (x MetricID) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MetricID) Descriptor() protoreflect.EnumDescriptor {
return file_dolt_services_eventsapi_v1alpha1_event_constants_proto_enumTypes[2].Descriptor()
}
func (MetricID) Type() protoreflect.EnumType {
return &file_dolt_services_eventsapi_v1alpha1_event_constants_proto_enumTypes[2]
}
func (x MetricID) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MetricID.Descriptor instead.
func (MetricID) EnumDescriptor() ([]byte, []int) {
return file_dolt_services_eventsapi_v1alpha1_event_constants_proto_rawDescGZIP(), []int{2}
}
type AttributeID int32
const (
AttributeID_ATTRIBUTE_UNSPECIFIED AttributeID = 0
AttributeID_REMOTE_URL_SCHEME AttributeID = 2
)
// Enum value maps for AttributeID.
var (
AttributeID_name = map[int32]string{
0: "ATTRIBUTE_UNSPECIFIED",
2: "REMOTE_URL_SCHEME",
}
AttributeID_value = map[string]int32{
"ATTRIBUTE_UNSPECIFIED": 0,
"REMOTE_URL_SCHEME": 2,
}
)
func (x AttributeID) Enum() *AttributeID {
p := new(AttributeID)
*p = x
return p
}
func (x AttributeID) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AttributeID) Descriptor() protoreflect.EnumDescriptor {
return file_dolt_services_eventsapi_v1alpha1_event_constants_proto_enumTypes[3].Descriptor()
}
func (AttributeID) Type() protoreflect.EnumType {
return &file_dolt_services_eventsapi_v1alpha1_event_constants_proto_enumTypes[3]
}
func (x AttributeID) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AttributeID.Descriptor instead.
func (AttributeID) EnumDescriptor() ([]byte, []int) {
return file_dolt_services_eventsapi_v1alpha1_event_constants_proto_rawDescGZIP(), []int{3}
}
type AppID int32
const (
AppID_APP_ID_UNSPECIFIED AppID = 0
AppID_APP_DOLT AppID = 1
AppID_APP_DOLTGRES AppID = 2
)
// Enum value maps for AppID.
var (
AppID_name = map[int32]string{
0: "APP_ID_UNSPECIFIED",
1: "APP_DOLT",
2: "APP_DOLTGRES",
}
AppID_value = map[string]int32{
"APP_ID_UNSPECIFIED": 0,
"APP_DOLT": 1,
"APP_DOLTGRES": 2,
}
)
func (x AppID) Enum() *AppID {
p := new(AppID)
*p = x
return p
}
func (x AppID) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AppID) Descriptor() protoreflect.EnumDescriptor {
return file_dolt_services_eventsapi_v1alpha1_event_constants_proto_enumTypes[4].Descriptor()
}
func (AppID) Type() protoreflect.EnumType {
return &file_dolt_services_eventsapi_v1alpha1_event_constants_proto_enumTypes[4]
}
func (x AppID) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AppID.Descriptor instead.
func (AppID) EnumDescriptor() ([]byte, []int) {
return file_dolt_services_eventsapi_v1alpha1_event_constants_proto_rawDescGZIP(), []int{4}
}
var File_dolt_services_eventsapi_v1alpha1_event_constants_proto protoreflect.FileDescriptor
const file_dolt_services_eventsapi_v1alpha1_event_constants_proto_rawDesc = "" +
"\n" +
"6dolt/services/eventsapi/v1alpha1/event_constants.proto\x12 dolt.services.eventsapi.v1alpha1*H\n" +
"\bPlatform\x12\x18\n" +
"\x14PLATFORM_UNSPECIFIED\x10\x00\x12\t\n" +
"\x05LINUX\x10\x01\x12\v\n" +
"\aWINDOWS\x10\x02\x12\n" +
"\n" +
"\x06DARWIN\x10\x03*\xaf\b\n" +
"\x0fClientEventType\x12\x14\n" +
"\x10TYPE_UNSPECIFIED\x10\x00\x12\b\n" +
"\x04INIT\x10\x01\x12\n" +
"\n" +
"\x06STATUS\x10\x02\x12\a\n" +
"\x03ADD\x10\x03\x12\t\n" +
"\x05RESET\x10\x04\x12\n" +
"\n" +
"\x06COMMIT\x10\x05\x12\a\n" +
"\x03SQL\x10\x06\x12\x0e\n" +
"\n" +
"SQL_SERVER\x10\a\x12\a\n" +
"\x03LOG\x10\b\x12\b\n" +
"\x04DIFF\x10\t\x12\t\n" +
"\x05MERGE\x10\n" +
"\x12\n" +
"\n" +
"\x06BRANCH\x10\v\x12\f\n" +
"\bCHECKOUT\x10\f\x12\n" +
"\n" +
"\x06REMOTE\x10\r\x12\b\n" +
"\x04PUSH\x10\x0e\x12\b\n" +
"\x04PULL\x10\x0f\x12\t\n" +
"\x05FETCH\x10\x10\x12\t\n" +
"\x05CLONE\x10\x11\x12\t\n" +
"\x05LOGIN\x10\x12\x12\v\n" +
"\aVERSION\x10\x13\x12\n" +
"\n" +
"\x06CONFIG\x10\x14\x12\x06\n" +
"\x02LS\x10\x15\x12\n" +
"\n" +
"\x06SCHEMA\x10\x16\x12\x10\n" +
"\fTABLE_IMPORT\x10\x17\x12\x10\n" +
"\fTABLE_EXPORT\x10\x18\x12\x10\n" +
"\fTABLE_CREATE\x10\x19\x12\f\n" +
"\bTABLE_RM\x10\x1a\x12\f\n" +
"\bTABLE_MV\x10\x1b\x12\f\n" +
"\bTABLE_CP\x10\x1c\x12\x10\n" +
"\fTABLE_SELECT\x10\x1d\x12\x11\n" +
"\rTABLE_PUT_ROW\x10\x1e\x12\x10\n" +
"\fTABLE_RM_ROW\x10\x1f\x12\r\n" +
"\tCREDS_NEW\x10 \x12\f\n" +
"\bCREDS_RM\x10!\x12\f\n" +
"\bCREDS_LS\x10\"\x12\f\n" +
"\bCONF_CAT\x10#\x12\x10\n" +
"\fCONF_RESOLVE\x10$\x12\x1f\n" +
"\x1bREMOTEAPI_GET_REPO_METADATA\x10%\x12\x18\n" +
"\x14REMOTEAPI_HAS_CHUNKS\x10&\x12$\n" +
" REMOTEAPI_GET_DOWNLOAD_LOCATIONS\x10'\x12\"\n" +
"\x1eREMOTEAPI_GET_UPLOAD_LOCATIONS\x10(\x12\x14\n" +
"\x10REMOTEAPI_REBASE\x10)\x12\x12\n" +
"\x0eREMOTEAPI_ROOT\x10*\x12\x14\n" +
"\x10REMOTEAPI_COMMIT\x10+\x12\x1e\n" +
"\x1aREMOTEAPI_LIST_TABLE_FILES\x10,\x12\t\n" +
"\x05BLAME\x10-\x12\x0f\n" +
"\vCREDS_CHECK\x10.\x12\r\n" +
"\tCREDS_USE\x10/\x12\x10\n" +
"\fCREDS_IMPORT\x100\x12\x1d\n" +
"\x19REMOTEAPI_ADD_TABLE_FILES\x101\x12\v\n" +
"\aMIGRATE\x102\x12\a\n" +
"\x03TAG\x103\x12\x16\n" +
"\x12GARBAGE_COLLECTION\x104\x12\x11\n" +
"\rFILTER_BRANCH\x105\x12\b\n" +
"\x04DUMP\x106\x12\x0f\n" +
"\vCHERRY_PICK\x107\x12\t\n" +
"\x05STASH\x108\x12\x0f\n" +
"\vSTASH_CLEAR\x109\x12\x0e\n" +
"\n" +
"STASH_DROP\x10:\x12\x0e\n" +
"\n" +
"STASH_LIST\x10;\x12\r\n" +
"\tSTASH_POP\x10<\x12\b\n" +
"\x04SHOW\x10=\x12\v\n" +
"\aPROFILE\x10>\x12\n" +
"\n" +
"\x06REFLOG\x10?\x12\x18\n" +
"\x14SQL_SERVER_HEARTBEAT\x10@\x12\n" +
"\n" +
"\x06REBASE\x10A*j\n" +
"\bMetricID\x12\x16\n" +
"\x12METRIC_UNSPECIFIED\x10\x00\x12\x14\n" +
"\x10BYTES_DOWNLOADED\x10\x01\x12\x17\n" +
"\x13DOWNLOAD_MS_ELAPSED\x10\x02\x12\x17\n" +
"\x13REMOTEAPI_RPC_ERROR\x10\x03*E\n" +
"\vAttributeID\x12\x19\n" +
"\x15ATTRIBUTE_UNSPECIFIED\x10\x00\x12\x15\n" +
"\x11REMOTE_URL_SCHEME\x10\x02\"\x04\b\x01\x10\x01*?\n" +
"\x05AppID\x12\x16\n" +
"\x12APP_ID_UNSPECIFIED\x10\x00\x12\f\n" +
"\bAPP_DOLT\x10\x01\x12\x10\n" +
"\fAPP_DOLTGRES\x10\x02BQZOgithub.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1;eventsapib\x06proto3"
var (
file_dolt_services_eventsapi_v1alpha1_event_constants_proto_rawDescOnce sync.Once
file_dolt_services_eventsapi_v1alpha1_event_constants_proto_rawDescData []byte
)
func file_dolt_services_eventsapi_v1alpha1_event_constants_proto_rawDescGZIP() []byte {
file_dolt_services_eventsapi_v1alpha1_event_constants_proto_rawDescOnce.Do(func() {
file_dolt_services_eventsapi_v1alpha1_event_constants_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_dolt_services_eventsapi_v1alpha1_event_constants_proto_rawDesc), len(file_dolt_services_eventsapi_v1alpha1_event_constants_proto_rawDesc)))
})
return file_dolt_services_eventsapi_v1alpha1_event_constants_proto_rawDescData
}
var file_dolt_services_eventsapi_v1alpha1_event_constants_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
var file_dolt_services_eventsapi_v1alpha1_event_constants_proto_goTypes = []any{
(Platform)(0), // 0: dolt.services.eventsapi.v1alpha1.Platform
(ClientEventType)(0), // 1: dolt.services.eventsapi.v1alpha1.ClientEventType
(MetricID)(0), // 2: dolt.services.eventsapi.v1alpha1.MetricID
(AttributeID)(0), // 3: dolt.services.eventsapi.v1alpha1.AttributeID
(AppID)(0), // 4: dolt.services.eventsapi.v1alpha1.AppID
}
var file_dolt_services_eventsapi_v1alpha1_event_constants_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_dolt_services_eventsapi_v1alpha1_event_constants_proto_init() }
func file_dolt_services_eventsapi_v1alpha1_event_constants_proto_init() {
if File_dolt_services_eventsapi_v1alpha1_event_constants_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_dolt_services_eventsapi_v1alpha1_event_constants_proto_rawDesc), len(file_dolt_services_eventsapi_v1alpha1_event_constants_proto_rawDesc)),
NumEnums: 5,
NumMessages: 0,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_dolt_services_eventsapi_v1alpha1_event_constants_proto_goTypes,
DependencyIndexes: file_dolt_services_eventsapi_v1alpha1_event_constants_proto_depIdxs,
EnumInfos: file_dolt_services_eventsapi_v1alpha1_event_constants_proto_enumTypes,
}.Build()
File_dolt_services_eventsapi_v1alpha1_event_constants_proto = out.File
file_dolt_services_eventsapi_v1alpha1_event_constants_proto_goTypes = nil
file_dolt_services_eventsapi_v1alpha1_event_constants_proto_depIdxs = nil
}
+7 -9
View File
@@ -10,7 +10,6 @@ require (
github.com/bcicen/jstream v1.0.0
github.com/boltdb/bolt v1.3.1
github.com/denisbrodbeck/machineid v1.0.1
github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi v0.0.0-20201005193433-3ee972b1d078
github.com/dolthub/fslock v0.0.3
github.com/dolthub/ishell v0.0.0-20240701202509-2b217167d718
github.com/dolthub/sqllogictest/go v0.0.0-20201107003712-816f3ae12d81
@@ -41,7 +40,7 @@ require (
golang.org/x/sync v0.16.0
golang.org/x/sys v0.34.0
google.golang.org/api v0.241.0
google.golang.org/grpc v1.73.0
google.golang.org/grpc v1.74.2
google.golang.org/protobuf v1.36.6
gopkg.in/src-d/go-errors.v1 v1.0.0
gopkg.in/yaml.v2 v2.4.0
@@ -59,6 +58,7 @@ require (
github.com/cespare/xxhash/v2 v2.3.0
github.com/creasty/defaults v1.6.0
github.com/dolthub/aws-sdk-go-ini-parser v0.0.0-20250305001723-2821c37f6c12
github.com/dolthub/eventsapi_schema v0.0.0-20250725194025-a087efa1ee55
github.com/dolthub/flatbuffers/v23 v23.3.3-dh.2
github.com/dolthub/go-mysql-server v0.20.1-0.20250724041921-9929479da769
github.com/dolthub/gozstd v0.0.0-20240423170813-23a2903bca63
@@ -96,7 +96,7 @@ require (
)
require (
cel.dev/expr v0.23.0 // indirect
cel.dev/expr v0.24.0 // indirect
cloud.google.com/go v0.120.0 // indirect
cloud.google.com/go/auth v0.16.2 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
@@ -129,7 +129,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/sts v1.33.16 // indirect
github.com/aws/smithy-go v1.22.2 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cncf/xds/go v0.0.0-20250326154945-ae57f3c0d45f // indirect
github.com/cncf/xds/go v0.0.0-20250501225837-2ac532fd4443 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dolthub/go-icu-regex v0.0.0-20250327004329-6799764f2dad // indirect
github.com/dolthub/jsonpath v0.0.2-0.20240227200619-19675ab05c71 // indirect
@@ -140,7 +140,7 @@ require (
github.com/go-jose/go-jose/v4 v4.0.5 // indirect
github.com/go-kit/kit v0.10.0 // indirect
github.com/go-latex/latex v0.0.0-20210823091927-c0d11ff05a81 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/logr v1.4.3 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-pdf/fpdf v0.6.0 // indirect
@@ -177,7 +177,7 @@ require (
github.com/yusufpapurcu/wmi v1.2.2 // indirect
github.com/zeebo/errs v1.4.0 // indirect
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
go.opentelemetry.io/contrib/detectors/gcp v1.35.0 // indirect
go.opentelemetry.io/contrib/detectors/gcp v1.36.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect
go.opentelemetry.io/otel/metric v1.36.0 // indirect
@@ -192,11 +192,9 @@ require (
golang.org/x/time v0.12.0 // indirect
golang.org/x/tools v0.34.0 // indirect
google.golang.org/genproto v0.0.0-20250505200425-f936aa4a68b2 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20250505200425-f936aa4a68b2 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20250528174236-200df99c418a // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7 // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
)
replace github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi => ./gen/proto/dolt/services/eventsapi
go 1.24.0
+16 -12
View File
@@ -1,5 +1,5 @@
cel.dev/expr v0.23.0 h1:wUb94w6OYQS4uXraxo9U+wUAs9jT47Xvl4iPgAwM2ss=
cel.dev/expr v0.23.0/go.mod h1:hLPLo1W4QUmuYdA72RBX06QTs6MXw941piREPl3Yfiw=
cel.dev/expr v0.24.0 h1:56OvJKSH3hDGL0ml5uSxZmz3/3Pq4tJ+fb1unVLAFcY=
cel.dev/expr v0.24.0/go.mod h1:hLPLo1W4QUmuYdA72RBX06QTs6MXw941piREPl3Yfiw=
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
@@ -208,8 +208,8 @@ github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMn
github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
github.com/cncf/xds/go v0.0.0-20250326154945-ae57f3c0d45f h1:C5bqEmzEPLsHm9Mv73lSE9e9bKV23aB1vxOsmZrkl3k=
github.com/cncf/xds/go v0.0.0-20250326154945-ae57f3c0d45f/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8=
github.com/cncf/xds/go v0.0.0-20250501225837-2ac532fd4443 h1:aQ3y1lwWyqYPiWZThqv1aFbZMiM9vblcSArJRf2Irls=
github.com/cncf/xds/go v0.0.0-20250501225837-2ac532fd4443/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8=
github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8=
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI=
github.com/colinmarc/hdfs/v2 v2.1.1/go.mod h1:M3x+k8UKKmxtFu++uAZ0OtDU8jR3jnaZIAc6yK4Ue0c=
@@ -232,6 +232,10 @@ github.com/denisenkom/go-mssqldb v0.10.0/go.mod h1:xbL0rPBG9cCiLr28tMa8zpbdarY27
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
github.com/dolthub/aws-sdk-go-ini-parser v0.0.0-20250305001723-2821c37f6c12 h1:IdqX7J8vi/Kn3T3Ee0VzqnLqwFmgA2hr8WZETPcQjfM=
github.com/dolthub/aws-sdk-go-ini-parser v0.0.0-20250305001723-2821c37f6c12/go.mod h1:rN7X8BHwkjPcfMQQ2QTAq/xM3leUSGLfb+1Js7Y6TVo=
github.com/dolthub/eventsapi_schema v0.0.0-20250725193407-0724e7677bf6 h1:cVH69eWkKM0j4Mvy6rq+qmbc57oq4s6HJk3KuhQvRUU=
github.com/dolthub/eventsapi_schema v0.0.0-20250725193407-0724e7677bf6/go.mod h1:CoDLfgPqHyBtth0Cp+fi/CmC4R81zJNX4wPjShdZ+Bw=
github.com/dolthub/eventsapi_schema v0.0.0-20250725194025-a087efa1ee55 h1:LdtiPD8IJ+M2XckvfQ/aLG34lET1shz+WMccGBhZRLM=
github.com/dolthub/eventsapi_schema v0.0.0-20250725194025-a087efa1ee55/go.mod h1:CoDLfgPqHyBtth0Cp+fi/CmC4R81zJNX4wPjShdZ+Bw=
github.com/dolthub/flatbuffers/v23 v23.3.3-dh.2 h1:u3PMzfF8RkKd3lB9pZ2bfn0qEG+1Gms9599cr0REMww=
github.com/dolthub/flatbuffers/v23 v23.3.3-dh.2/go.mod h1:mIEZOHnFx4ZMQeawhw9rhsj+0zwQj7adVsnBX7t+eKY=
github.com/dolthub/fslock v0.0.3 h1:iLMpUIvJKMKm92+N1fmHVdxJP5NdyDK5bK7z7Ba2s2U=
@@ -311,8 +315,8 @@ github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V
github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A=
github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs=
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI=
github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY=
@@ -792,8 +796,8 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA=
go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A=
go.opentelemetry.io/contrib/detectors/gcp v1.35.0 h1:bGvFt68+KTiAKFlacHW6AhA56GF2rS0bdD3aJYEnmzA=
go.opentelemetry.io/contrib/detectors/gcp v1.35.0/go.mod h1:qGWP8/+ILwMRIUf9uIVLloR1uo5ZYAslM4O6OqUi1DA=
go.opentelemetry.io/contrib/detectors/gcp v1.36.0 h1:F7q2tNlCaHY9nMKHR6XH9/qkp8FktLnIcy6jJNyOCQw=
go.opentelemetry.io/contrib/detectors/gcp v1.36.0/go.mod h1:IbBN8uAIIx734PTonTPxAxnjc2pQTxWNkwfstZ+6H2k=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0 h1:q4XOmH/0opmeuJtPsbFNivyl7bCt7yRBbeEm2sC/XtQ=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0/go.mod h1:snMWehoOh2wsEwnvvwtDyFCxVeDAODenXHtn5vzrKjo=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 h1:F7Jx+6hwnZ41NSFTO5q4LYDtJRXBf2PD0rNBkeB/lus=
@@ -1161,8 +1165,8 @@ google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6D
google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
google.golang.org/genproto v0.0.0-20250505200425-f936aa4a68b2 h1:1tXaIXCracvtsRxSBsYDiSBN0cuJvM7QYW+MrpIRY78=
google.golang.org/genproto v0.0.0-20250505200425-f936aa4a68b2/go.mod h1:49MsLSx0oWMOZqcpB3uL8ZOkAh1+TndpJ8ONoCBWiZk=
google.golang.org/genproto/googleapis/api v0.0.0-20250505200425-f936aa4a68b2 h1:vPV0tzlsK6EzEDHNNH5sa7Hs9bd7iXR7B1tSiPepkV0=
google.golang.org/genproto/googleapis/api v0.0.0-20250505200425-f936aa4a68b2/go.mod h1:pKLAc5OolXC3ViWGI62vvC0n10CpwAtRcTNCFwTKBEw=
google.golang.org/genproto/googleapis/api v0.0.0-20250528174236-200df99c418a h1:SGktgSolFCo75dnHJF2yMvnns6jCmHFJ0vE4Vn2JKvQ=
google.golang.org/genproto/googleapis/api v0.0.0-20250528174236-200df99c418a/go.mod h1:a77HrdMjoeKbnd2jmgcWdaS++ZLZAEq3orIOAEIKiVw=
google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7 h1:pFyd6EwwL2TqFf8emdthzeX+gZE1ElRq3iM8pui4KBY=
google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A=
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
@@ -1183,8 +1187,8 @@ google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3Iji
google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0=
google.golang.org/grpc v1.73.0 h1:VIWSmpI2MegBtTuFt5/JWy2oXxtjJ/e89Z70ImfD2ok=
google.golang.org/grpc v1.73.0/go.mod h1:50sbHOUqWoCQGI8V2HQLJM0B+LMlIUjNSZmow7EVBQc=
google.golang.org/grpc v1.74.2 h1:WoosgB65DlWVC9FqI82dGsZhWFNBSLjQ84bjROOpMu4=
google.golang.org/grpc v1.74.2/go.mod h1:CtQ+BGjaAIXHs/5YS3i473GqwBBa1zGQNevxdeBEXrM=
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
-8
View File
@@ -1,8 +0,0 @@
go 1.24.0
toolchain go1.24.0
use (
.
./gen/proto/dolt/services/eventsapi
)
-1084
View File
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -22,8 +22,9 @@ import (
"sync"
"time"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/cmd/dolt/cli"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/doltdb"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
"github.com/dolthub/dolt/go/libraries/doltcore/ref"
@@ -19,8 +19,8 @@ import (
"google.golang.org/grpc"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/events"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
func EventsUnaryClientInterceptor(collector *events.Collector) grpc.UnaryClientInterceptor {
+1 -1
View File
@@ -22,7 +22,7 @@ import (
"github.com/cenkalti/backoff/v4"
"github.com/denisbrodbeck/machineid"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var machineID = "invalid"
+1 -1
View File
@@ -27,9 +27,9 @@ import (
"google.golang.org/grpc"
"google.golang.org/protobuf/encoding/prototext"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/utils/filesys"
"github.com/dolthub/dolt/go/libraries/utils/iohelp"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
// Application is the application ID used for all events emitted by this application. Other applications (not dolt)
+1 -1
View File
@@ -22,8 +22,8 @@ import (
"github.com/dolthub/fslock"
"google.golang.org/protobuf/proto"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/utils/filesys"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var (
+1 -1
View File
@@ -22,9 +22,9 @@ import (
"github.com/stretchr/testify/assert"
"google.golang.org/grpc"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/utils/filesys"
testLib "github.com/dolthub/dolt/go/libraries/utils/test"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
var (
+1 -1
View File
@@ -21,7 +21,7 @@ import (
"github.com/google/uuid"
"google.golang.org/protobuf/types/known/timestamppb"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
// EventNowFunc function is used to get the current time and can be overridden for testing.
+1 -1
View File
@@ -21,7 +21,7 @@ import (
"github.com/stretchr/testify/assert"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
func TestEvents(t *testing.T) {
+1 -1
View File
@@ -25,9 +25,9 @@ import (
"google.golang.org/protobuf/proto"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
filesys "github.com/dolthub/dolt/go/libraries/utils/filesys"
"github.com/dolthub/dolt/go/libraries/utils/iohelp"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
const (
+1 -1
View File
@@ -22,8 +22,8 @@ import (
"github.com/stretchr/testify/assert"
"google.golang.org/protobuf/proto"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/utils/filesys"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
type SequentialNamer struct {
+1 -1
View File
@@ -20,7 +20,7 @@ import (
"google.golang.org/protobuf/types/known/durationpb"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
// EventMetric is an interface for getting the eventsapi.ClientEventMetric encoding of a metric
+1 -1
View File
@@ -21,7 +21,7 @@ import (
"github.com/stretchr/testify/assert"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
eventsapi "github.com/dolthub/eventsapi_schema/dolt/services/eventsapi/v1alpha1"
)
func TestCounterAtomicity(t *testing.T) {
+2 -2
View File
@@ -7,7 +7,7 @@ cd $script_dir/../..
paths=`find . -maxdepth 1 -mindepth 1 \( -type d -print -o -type f -name '*.go' -print \)`
goimports -w -local github.com/dolthub/dolt $paths
goimports -w -local github.com/dolthub/dolt,github.com/dolthub/eventsapi_schema $paths
bad_files=$(find $paths -name '*.go' | while read f; do
if [[ $(awk '/import \(/{flag=1;next}/\)/{flag=0}flag' < $f | egrep -c '$^') -gt 2 ]]; then
@@ -20,5 +20,5 @@ if [ "$bad_files" != "" ]; then
awk '/import \(/{flag=1}/\)/{flag=0}flag&&!/^$/||!flag' < "$f" > "$f.bak"
mv "$f.bak" "$f"
done
goimports -w -local github.com/dolthub/dolt .
goimports -w -local github.com/dolthub/dolt,github.com/dolthub/eventsapi_schema .
fi
+1 -7
View File
@@ -12,11 +12,6 @@ PROTOC_FLAGS = --plugin=protoc-gen-go=$(PROTOC_GEN_GO) --plugin=protoc-gen-go-gr
pbgo_out := ../go/gen/proto
EVENTSAPI_protos := \
dolt/services/eventsapi/v1alpha1/client_event.proto \
dolt/services/eventsapi/v1alpha1/event_constants.proto
EVENTSAPI_pbgo_pkg_path := dolt/services/eventsapi/v1alpha1
REMOTESAPI_protos := \
dolt/services/remotesapi/v1alpha1/chunkstore.proto \
dolt/services/remotesapi/v1alpha1/credentials.proto
@@ -32,8 +27,7 @@ nonservice_protos := \
PBGO_pkgs := \
CLIENTEVENTS \
REMOTESAPI \
REPLICATIONAPI \
EVENTSAPI
REPLICATIONAPI
all:
@@ -1,65 +0,0 @@
// Copyright 2020 Dolthub, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// WARNING: This file was is automatically generated. DO NOT EDIT BY HAND.
syntax = "proto3";
package dolt.services.eventsapi.v1alpha1;
option go_package = "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1;eventsapi";
import "dolt/services/eventsapi/v1alpha1/event_constants.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
service ClientEventsService {
rpc LogEvents(LogEventsRequest) returns (LogEventsResponse);
}
message ClientEventAttribute {
dolt.services.eventsapi.v1alpha1.AttributeID id = 1;
string value = 2;
}
message ClientEventMetric {
oneof metric_oneof {
google.protobuf.Duration duration = 1;
int32 count = 2;
}
dolt.services.eventsapi.v1alpha1.MetricID metric_id = 100;
}
message ClientEvent {
string id = 1;
google.protobuf.Timestamp start_time = 2;
google.protobuf.Timestamp end_time = 3;
dolt.services.eventsapi.v1alpha1.ClientEventType type = 4;
repeated ClientEventAttribute attributes = 5;
repeated ClientEventMetric metrics = 6;
}
message LogEventsRequest {
string machine_id = 1;
string extra = 2;
string version = 3;
dolt.services.eventsapi.v1alpha1.Platform platform = 4;
repeated ClientEvent events = 5;
dolt.services.eventsapi.v1alpha1.AppID app = 6;
}
message LogEventsResponse {
}
@@ -1,117 +0,0 @@
// Copyright 2020 Dolthub, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// WARNING: This file was is automatically generated. DO NOT EDIT BY HAND.
syntax = "proto3";
package dolt.services.eventsapi.v1alpha1;
option go_package = "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1;eventsapi";
enum Platform {
PLATFORM_UNSPECIFIED = 0;
LINUX = 1;
WINDOWS = 2;
DARWIN = 3;
}
enum ClientEventType {
TYPE_UNSPECIFIED = 0;
INIT = 1;
STATUS = 2;
ADD = 3;
RESET = 4;
COMMIT = 5;
SQL = 6;
SQL_SERVER = 7;
LOG = 8;
DIFF = 9;
MERGE = 10;
BRANCH = 11;
CHECKOUT = 12;
REMOTE = 13;
PUSH = 14;
PULL = 15;
FETCH = 16;
CLONE = 17;
LOGIN = 18;
VERSION = 19;
CONFIG = 20;
LS = 21;
SCHEMA = 22;
TABLE_IMPORT = 23;
TABLE_EXPORT = 24;
TABLE_CREATE = 25;
TABLE_RM = 26;
TABLE_MV = 27;
TABLE_CP = 28;
TABLE_SELECT = 29;
TABLE_PUT_ROW = 30;
TABLE_RM_ROW = 31;
CREDS_NEW = 32;
CREDS_RM = 33;
CREDS_LS = 34;
CONF_CAT = 35;
CONF_RESOLVE = 36;
REMOTEAPI_GET_REPO_METADATA = 37;
REMOTEAPI_HAS_CHUNKS = 38;
REMOTEAPI_GET_DOWNLOAD_LOCATIONS = 39;
REMOTEAPI_GET_UPLOAD_LOCATIONS = 40;
REMOTEAPI_REBASE = 41;
REMOTEAPI_ROOT = 42;
REMOTEAPI_COMMIT = 43;
REMOTEAPI_LIST_TABLE_FILES = 44;
BLAME = 45;
CREDS_CHECK = 46;
CREDS_USE = 47;
CREDS_IMPORT = 48;
REMOTEAPI_ADD_TABLE_FILES = 49;
MIGRATE = 50;
TAG = 51;
GARBAGE_COLLECTION = 52;
FILTER_BRANCH = 53;
DUMP = 54;
CHERRY_PICK = 55;
STASH = 56;
STASH_CLEAR = 57;
STASH_DROP = 58;
STASH_LIST = 59;
STASH_POP = 60;
SHOW = 61;
PROFILE = 62;
REFLOG = 63;
SQL_SERVER_HEARTBEAT = 64;
REBASE = 65;
}
enum MetricID {
METRIC_UNSPECIFIED = 0;
BYTES_DOWNLOADED = 1;
DOWNLOAD_MS_ELAPSED = 2;
REMOTEAPI_RPC_ERROR = 3;
}
enum AttributeID {
reserved 1;
ATTRIBUTE_UNSPECIFIED = 0;
REMOTE_URL_SCHEME = 2;
}
enum AppID {
APP_ID_UNSPECIFIED = 0;
APP_DOLT = 1;
APP_DOLTGRES = 2;
}