Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/api/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ package api
//go:generate protoc -I=. -I=$GOPATH/src/github.com/google/trillian/ -I=$GOPATH/src/github.com/googleapis/googleapis/ -I=$GOPATH/src/github.com/google/tink/proto --grpc-gateway_out=logtostderr=true:$GOPATH/src v1/keytransparency.proto v1/admin.proto v1/frontend.proto
//go:generate protoc -I=. -I=$GOPATH/src/github.com/google/trillian/ -I=$GOPATH/src/github.com/googleapis/googleapis/ -I=$GOPATH/src/github.com/google/tink/proto --doc_out=markdown,api.md:../../docs/ v1/keytransparency.proto v1/admin.proto v1/frontend.proto

//go:generate protoc -I=. -I=$GOPATH/src/github.com/google/trillian/ -I=$GOPATH/src/github.com/googleapis/googleapis/ -I=$GOPATH/src/github.com/google/tink/proto --go_out=,plugins=grpc:$GOPATH/src transcript/transcript.proto
//go:generate protoc -I=. -I=$GOPATH/src/github.com/google/trillian/ -I=$GOPATH/src/github.com/googleapis/googleapis/ -I=$GOPATH/src/github.com/google/tink/proto --go_out=,plugins=grpc:$GOPATH/src monitor/v1/monitor.proto
//go:generate protoc -I=. -I=$GOPATH/src/github.com/google/trillian/ -I=$GOPATH/src/github.com/googleapis/googleapis/ -I=$GOPATH/src/github.com/google/tink/proto --grpc-gateway_out=logtostderr=true:$GOPATH/src monitor/v1/monitor.proto
54 changes: 54 additions & 0 deletions core/api/transcript/transcript.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
// Copyright 2019 Google Inc. All Rights Reserved.
//
// 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.

syntax = "proto3";

package google.keytransparency.transcript;

option go_package = "github.com/google/keytransparency/core/api/transcript_go_proto";

import "v1/keytransparency.proto";
import "v1/admin.proto";

message Transcript {
string description = 1;
v1.Directory directory = 2;
repeated Unary rpcs = 3;
}

message Unary {
string full_method = 1;
string desc = 2;
v1.LogRootRequest last_verified_log_root = 3;
oneof req_resp_pair {
GetUser get_user = 4;
BatchGetUser batch_get_user = 5;
BatchListUserRevisions batch_list_user_revisions = 6;
}
}

message GetUser {
v1.GetUserRequest request = 1;
v1.GetUserResponse response = 2;
}

message BatchGetUser {
v1.BatchGetUserRequest request = 1;
v1.BatchGetUserResponse response = 2;
}

message BatchListUserRevisions {
v1.BatchListUserRevisionsRequest request = 1;
v1.BatchListUserRevisionsResponse response = 2;
}
Loading