Documentation
¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
srcstore.proto
It has these top-level messages:
ImportOp IndexOp
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMultiRepoImporterServer ¶
func RegisterMultiRepoImporterServer(s *grpc.Server, srv MultiRepoImporterServer)
Types ¶
type ImportOp ¶
type ImportOp struct {
Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
CommitID string `protobuf:"bytes,2,opt,name=commit_id,proto3" json:"commit_id,omitempty"`
Unit *unit.RepoSourceUnit `protobuf:"bytes,3,opt,name=unit" json:"unit,omitempty"`
Data *graph3.Output `protobuf:"bytes,4,opt,name=data" json:"data,omitempty"`
}
func (*ImportOp) ProtoMessage ¶
func (*ImportOp) ProtoMessage()
type IndexOp ¶
type IndexOp struct {
Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
CommitID string `protobuf:"bytes,2,opt,name=commit_id,proto3" json:"commit_id,omitempty"`
}
func (*IndexOp) ProtoMessage ¶
func (*IndexOp) ProtoMessage()
type MultiRepoImporterClient ¶
type MultiRepoImporterClient interface {
// Import imports srclib build data for a source unit at a
// specific version into the store.
Import(ctx context.Context, in *ImportOp, opts ...grpc.CallOption) (*pbtypes.Void, error)
// Index builds indexes for a specific repo at a specific version.
Index(ctx context.Context, in *IndexOp, opts ...grpc.CallOption) (*pbtypes.Void, error)
}
func NewMultiRepoImporterClient ¶
func NewMultiRepoImporterClient(cc *grpc.ClientConn) MultiRepoImporterClient
type MultiRepoImporterIndexer ¶
type MultiRepoImporterIndexer interface {
store.MultiRepoImporter
store.MultiRepoIndexer
}
A MultiRepoImporterIndexer implements both store.MultiRepoImporter and store.MultiRepoIndexer.
func Client ¶
func Client(ctx context.Context, c MultiRepoImporterClient) MultiRepoImporterIndexer
Client wraps a gRPC MultiRepoImporterClient and makes it implement store.MultiRepoImporter. Clients should not be long-lived (because they must hold the ctx).
type MultiRepoImporterServer ¶
type MultiRepoImporterServer interface {
// Import imports srclib build data for a source unit at a
// specific version into the store.
Import(context.Context, *ImportOp) (*pbtypes.Void, error)
// Index builds indexes for a specific repo at a specific version.
Index(context.Context, *IndexOp) (*pbtypes.Void, error)
}
func Server ¶
func Server(s MultiRepoImporterIndexer) MultiRepoImporterServer
Server wraps a store.MultiRepoImporter and makes it implement MultiRepoImporterServer.
Click to show internal directories.
Click to hide internal directories.