Documentation ¶
Index ¶
- Variables
- func RegisterScannerServer(s *grpc.Server, srv ScannerServer)
- type Cache
- func (*Cache) Descriptor() ([]byte, []int)deprecated
- func (x *Cache) GetChanges() []*Change
- func (x *Cache) GetCommit() *Commit
- func (x *Cache) GetData() *ScanResponse
- func (x *Cache) GetSnapshot() *Snapshot
- func (*Cache) ProtoMessage()
- func (x *Cache) ProtoReflect() protoreflect.Message
- func (x *Cache) Reset()
- func (x *Cache) String() string
- type Change
- type Commit
- func (*Commit) Descriptor() ([]byte, []int)deprecated
- func (x *Commit) GetAuthor() *Signature
- func (x *Commit) GetCommitter() *Signature
- func (x *Commit) GetHash() string
- func (x *Commit) GetMessage() string
- func (x *Commit) GetParentHashes() []string
- func (x *Commit) GetPgpSignature() string
- func (x *Commit) GetTreeHash() string
- func (*Commit) ProtoMessage()
- func (x *Commit) ProtoReflect() protoreflect.Message
- func (x *Commit) Reset()
- func (x *Commit) String() string
- type File
- func (*File) Descriptor() ([]byte, []int)deprecated
- func (x *File) GetHash() string
- func (x *File) GetMode() uint32
- func (x *File) GetName() string
- func (x *File) GetSize() int64
- func (*File) ProtoMessage()
- func (x *File) ProtoReflect() protoreflect.Message
- func (x *File) Reset()
- func (x *File) String() string
- type ScanContext
- func (*ScanContext) Descriptor() ([]byte, []int)deprecated
- func (x *ScanContext) GetChanges() []*Change
- func (x *ScanContext) GetCommit() *Commit
- func (x *ScanContext) GetData() map[string]*ScanResponse
- func (x *ScanContext) GetSnapshot() *Snapshot
- func (*ScanContext) ProtoMessage()
- func (x *ScanContext) ProtoReflect() protoreflect.Message
- func (x *ScanContext) Reset()
- func (x *ScanContext) String() string
- type ScanResponse
- func (*ScanResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ScanResponse) GetData() *anypb.Any
- func (x *ScanResponse) GetJson() string
- func (x *ScanResponse) GetName() string
- func (*ScanResponse) ProtoMessage()
- func (x *ScanResponse) ProtoReflect() protoreflect.Message
- func (x *ScanResponse) Reset()
- func (x *ScanResponse) String() string
- type ScannerClient
- type ScannerServer
- type Signature
- func (*Signature) Descriptor() ([]byte, []int)deprecated
- func (x *Signature) GetEmail() string
- func (x *Signature) GetName() string
- func (x *Signature) GetWhen() *timestamppb.Timestamp
- func (*Signature) ProtoMessage()
- func (x *Signature) ProtoReflect() protoreflect.Message
- func (x *Signature) Reset()
- func (x *Signature) String() string
- type Snapshot
- type UnimplementedScannerServer
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) GetChanges ¶
func (*Cache) GetData ¶
func (x *Cache) GetData() *ScanResponse
func (*Cache) GetSnapshot ¶
func (*Cache) ProtoMessage ¶
func (*Cache) ProtoMessage()
func (*Cache) ProtoReflect ¶
func (x *Cache) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Change) ProtoMessage()
func (*Change) ProtoReflect ¶
func (x *Change) ProtoReflect() protoreflect.Message
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) GetCommitter ¶
func (*Commit) GetMessage ¶
func (*Commit) GetParentHashes ¶
func (*Commit) GetPgpSignature ¶
func (*Commit) GetTreeHash ¶
func (*Commit) ProtoMessage ¶
func (*Commit) ProtoMessage()
func (*Commit) ProtoReflect ¶
func (x *Commit) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
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) GetWhen ¶
func (x *Signature) GetWhen() *timestamppb.Timestamp
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
func (*Signature) ProtoReflect ¶
func (x *Signature) ProtoReflect() protoreflect.Message
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) GetEntries ¶
func (*Snapshot) ProtoMessage ¶
func (*Snapshot) ProtoMessage()
func (*Snapshot) ProtoReflect ¶
func (x *Snapshot) ProtoReflect() protoreflect.Message
type UnimplementedScannerServer ¶
type UnimplementedScannerServer struct { }
UnimplementedScannerServer can be embedded to have forward compatible implementations.
func (*UnimplementedScannerServer) Scan ¶
func (*UnimplementedScannerServer) Scan(context.Context, *ScanContext) (*ScanResponse, error)
Click to show internal directories.
Click to hide internal directories.