proto

package
v0.0.0-...-c42f907 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_scanner_proto protoreflect.FileDescriptor

Functions

func RegisterScannerServer

func RegisterScannerServer(s *grpc.Server, srv ScannerServer)

Types

type Cache

type Cache struct {
	Commit   *Commit       `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"`
	Snapshot *Snapshot     `protobuf:"bytes,2,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
	Changes  []*Change     `protobuf:"bytes,3,rep,name=changes,proto3" json:"changes,omitempty"`
	Data     *ScanResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Cache) Descriptor deprecated

func (*Cache) Descriptor() ([]byte, []int)

Deprecated: Use Cache.ProtoReflect.Descriptor instead.

func (*Cache) GetChanges

func (x *Cache) GetChanges() []*Change

func (*Cache) GetCommit

func (x *Cache) GetCommit() *Commit

func (*Cache) GetData

func (x *Cache) GetData() *ScanResponse

func (*Cache) GetSnapshot

func (x *Cache) GetSnapshot() *Snapshot

func (*Cache) ProtoMessage

func (*Cache) ProtoMessage()

func (*Cache) ProtoReflect

func (x *Cache) ProtoReflect() protoreflect.Message

func (*Cache) Reset

func (x *Cache) Reset()

func (*Cache) String

func (x *Cache) String() string

type Change

type Change struct {
	Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	From   *File  `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	To     *File  `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*Change) Descriptor deprecated

func (*Change) Descriptor() ([]byte, []int)

Deprecated: Use Change.ProtoReflect.Descriptor instead.

func (*Change) GetAction

func (x *Change) GetAction() string

func (*Change) GetFrom

func (x *Change) GetFrom() *File

func (*Change) GetTo

func (x *Change) GetTo() *File

func (*Change) ProtoMessage

func (*Change) ProtoMessage()

func (*Change) ProtoReflect

func (x *Change) ProtoReflect() protoreflect.Message

func (*Change) Reset

func (x *Change) Reset()

func (*Change) String

func (x *Change) String() string

type Commit

type Commit struct {
	Hash         string     `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Author       *Signature `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
	Committer    *Signature `protobuf:"bytes,3,opt,name=committer,proto3" json:"committer,omitempty"`
	PgpSignature string     `protobuf:"bytes,4,opt,name=pgpSignature,proto3" json:"pgpSignature,omitempty"`
	Message      string     `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
	TreeHash     string     `protobuf:"bytes,6,opt,name=treeHash,proto3" json:"treeHash,omitempty"`
	ParentHashes []string   `protobuf:"bytes,7,rep,name=parentHashes,proto3" json:"parentHashes,omitempty"`
	// contains filtered or unexported fields
}

func (*Commit) Descriptor deprecated

func (*Commit) Descriptor() ([]byte, []int)

Deprecated: Use Commit.ProtoReflect.Descriptor instead.

func (*Commit) GetAuthor

func (x *Commit) GetAuthor() *Signature

func (*Commit) GetCommitter

func (x *Commit) GetCommitter() *Signature

func (*Commit) GetHash

func (x *Commit) GetHash() string

func (*Commit) GetMessage

func (x *Commit) GetMessage() string

func (*Commit) GetParentHashes

func (x *Commit) GetParentHashes() []string

func (*Commit) GetPgpSignature

func (x *Commit) GetPgpSignature() string

func (*Commit) GetTreeHash

func (x *Commit) GetTreeHash() string

func (*Commit) ProtoMessage

func (*Commit) ProtoMessage()

func (*Commit) ProtoReflect

func (x *Commit) ProtoReflect() protoreflect.Message

func (*Commit) Reset

func (x *Commit) Reset()

func (*Commit) String

func (x *Commit) String() string

type File

type File struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Mode uint32 `protobuf:"varint,2,opt,name=mode,proto3" json:"mode,omitempty"`
	Size int64  `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	Hash string `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*File) Descriptor deprecated

func (*File) Descriptor() ([]byte, []int)

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetHash

func (x *File) GetHash() string

func (*File) GetMode

func (x *File) GetMode() uint32

func (*File) GetName

func (x *File) GetName() string

func (*File) GetSize

func (x *File) GetSize() int64

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

func (x *File) ProtoReflect() protoreflect.Message

func (*File) Reset

func (x *File) Reset()

func (*File) String

func (x *File) String() string

type ScanContext

type ScanContext struct {
	Commit   *Commit                  `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"`
	Snapshot *Snapshot                `protobuf:"bytes,2,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
	Changes  []*Change                `protobuf:"bytes,3,rep,name=changes,proto3" json:"changes,omitempty"`
	Data     map[string]*ScanResponse `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ScanContext) Descriptor deprecated

func (*ScanContext) Descriptor() ([]byte, []int)

Deprecated: Use ScanContext.ProtoReflect.Descriptor instead.

func (*ScanContext) GetChanges

func (x *ScanContext) GetChanges() []*Change

func (*ScanContext) GetCommit

func (x *ScanContext) GetCommit() *Commit

func (*ScanContext) GetData

func (x *ScanContext) GetData() map[string]*ScanResponse

func (*ScanContext) GetSnapshot

func (x *ScanContext) GetSnapshot() *Snapshot

func (*ScanContext) ProtoMessage

func (*ScanContext) ProtoMessage()

func (*ScanContext) ProtoReflect

func (x *ScanContext) ProtoReflect() protoreflect.Message

func (*ScanContext) Reset

func (x *ScanContext) Reset()

func (*ScanContext) String

func (x *ScanContext) String() string

type ScanResponse

type ScanResponse struct {
	Name string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Data *anypb.Any `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Json string     `protobuf:"bytes,3,opt,name=json,proto3" json:"json,omitempty"`
	// contains filtered or unexported fields
}

func (*ScanResponse) Descriptor deprecated

func (*ScanResponse) Descriptor() ([]byte, []int)

Deprecated: Use ScanResponse.ProtoReflect.Descriptor instead.

func (*ScanResponse) GetData

func (x *ScanResponse) GetData() *anypb.Any

func (*ScanResponse) GetJson

func (x *ScanResponse) GetJson() string

func (*ScanResponse) GetName

func (x *ScanResponse) GetName() string

func (*ScanResponse) ProtoMessage

func (*ScanResponse) ProtoMessage()

func (*ScanResponse) ProtoReflect

func (x *ScanResponse) ProtoReflect() protoreflect.Message

func (*ScanResponse) Reset

func (x *ScanResponse) Reset()

func (*ScanResponse) String

func (x *ScanResponse) String() string

type ScannerClient

type ScannerClient interface {
	Scan(ctx context.Context, in *ScanContext, opts ...grpc.CallOption) (*ScanResponse, error)
}

ScannerClient is the client API for Scanner service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewScannerClient

func NewScannerClient(cc grpc.ClientConnInterface) ScannerClient

type ScannerServer

type ScannerServer interface {
	Scan(context.Context, *ScanContext) (*ScanResponse, error)
}

ScannerServer is the server API for Scanner service.

type Signature

type Signature struct {
	Name  string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Email string                 `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	When  *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=when,proto3" json:"when,omitempty"`
	// contains filtered or unexported fields
}

func (*Signature) Descriptor deprecated

func (*Signature) Descriptor() ([]byte, []int)

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetEmail

func (x *Signature) GetEmail() string

func (*Signature) GetName

func (x *Signature) GetName() string

func (*Signature) GetWhen

func (x *Signature) GetWhen() *timestamppb.Timestamp

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect

func (x *Signature) ProtoReflect() protoreflect.Message

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

type Snapshot

type Snapshot struct {
	Hash    string  `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Entries []*File `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

func (*Snapshot) Descriptor deprecated

func (*Snapshot) Descriptor() ([]byte, []int)

Deprecated: Use Snapshot.ProtoReflect.Descriptor instead.

func (*Snapshot) GetEntries

func (x *Snapshot) GetEntries() []*File

func (*Snapshot) GetHash

func (x *Snapshot) GetHash() string

func (*Snapshot) ProtoMessage

func (*Snapshot) ProtoMessage()

func (*Snapshot) ProtoReflect

func (x *Snapshot) ProtoReflect() protoreflect.Message

func (*Snapshot) Reset

func (x *Snapshot) Reset()

func (*Snapshot) String

func (x *Snapshot) String() string

type UnimplementedScannerServer

type UnimplementedScannerServer struct {
}

UnimplementedScannerServer can be embedded to have forward compatible implementations.

func (*UnimplementedScannerServer) Scan

Jump to

Keyboard shortcuts

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