pb

package
v0.1.1-no-docker4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2015 License: BSD-3-Clause, MIT Imports: 9 Imported by: 0

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()

func (*ImportOp) Reset

func (m *ImportOp) Reset()

func (*ImportOp) String

func (m *ImportOp) String() string

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()

func (*IndexOp) Reset

func (m *IndexOp) Reset()

func (*IndexOp) String

func (m *IndexOp) String() string

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

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

Server wraps a store.MultiRepoImporter and makes it implement MultiRepoImporterServer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL