pb

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2016 License: BSD-3-Clause, MIT Imports: 10 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

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) Marshal added in v0.2.0

func (m *ImportOp) Marshal() (data []byte, err error)

func (*ImportOp) MarshalTo added in v0.2.0

func (m *ImportOp) MarshalTo(data []byte) (int, error)

func (*ImportOp) ProtoMessage

func (*ImportOp) ProtoMessage()

func (*ImportOp) Reset

func (m *ImportOp) Reset()

func (*ImportOp) Size added in v0.2.0

func (m *ImportOp) Size() (n int)

func (*ImportOp) String

func (m *ImportOp) String() string

func (*ImportOp) Unmarshal added in v0.2.0

func (m *ImportOp) Unmarshal(data []byte) error

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) Marshal added in v0.2.0

func (m *IndexOp) Marshal() (data []byte, err error)

func (*IndexOp) MarshalTo added in v0.2.0

func (m *IndexOp) MarshalTo(data []byte) (int, error)

func (*IndexOp) ProtoMessage

func (*IndexOp) ProtoMessage()

func (*IndexOp) Reset

func (m *IndexOp) Reset()

func (*IndexOp) Size added in v0.2.0

func (m *IndexOp) Size() (n int)

func (*IndexOp) String

func (m *IndexOp) String() string

func (*IndexOp) Unmarshal added in v0.2.0

func (m *IndexOp) Unmarshal(data []byte) error

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