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 ¶
View Source
var ( ErrInvalidLengthSrcstore = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSrcstore = fmt.Errorf("proto: integer overflow") )
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=CommitID,proto3" json:"CommitID,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=CommitID,proto3" json:"CommitID,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.