analyzer

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 10 Imported by: 4

Documentation

Index

Constants

View Source
const CommitAnalyzerPluginName = "commit_analyzer"

Variables

View Source
var File_pkg_analyzer_commit_analyzer_proto protoreflect.FileDescriptor

Functions

func RegisterCommitAnalyzerPluginServer

func RegisterCommitAnalyzerPluginServer(s *grpc.Server, srv CommitAnalyzerPluginServer)

Types

type AnalyzeCommits

type AnalyzeCommits struct {
	// contains filtered or unexported fields
}

func (*AnalyzeCommits) Descriptor deprecated

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

Deprecated: Use AnalyzeCommits.ProtoReflect.Descriptor instead.

func (*AnalyzeCommits) ProtoMessage

func (*AnalyzeCommits) ProtoMessage()

func (*AnalyzeCommits) ProtoReflect

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

func (*AnalyzeCommits) Reset

func (x *AnalyzeCommits) Reset()

func (*AnalyzeCommits) String

func (x *AnalyzeCommits) String() string

type AnalyzeCommits_Request

type AnalyzeCommits_Request struct {
	RawCommits []*semrel.RawCommit `protobuf:"bytes,1,rep,name=raw_commits,json=rawCommits,proto3" json:"raw_commits,omitempty"`
	// contains filtered or unexported fields
}

func (*AnalyzeCommits_Request) Descriptor deprecated

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

Deprecated: Use AnalyzeCommits_Request.ProtoReflect.Descriptor instead.

func (*AnalyzeCommits_Request) GetRawCommits

func (x *AnalyzeCommits_Request) GetRawCommits() []*semrel.RawCommit

func (*AnalyzeCommits_Request) ProtoMessage

func (*AnalyzeCommits_Request) ProtoMessage()

func (*AnalyzeCommits_Request) ProtoReflect

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

func (*AnalyzeCommits_Request) Reset

func (x *AnalyzeCommits_Request) Reset()

func (*AnalyzeCommits_Request) String

func (x *AnalyzeCommits_Request) String() string

type AnalyzeCommits_Response

type AnalyzeCommits_Response struct {
	Commits []*semrel.Commit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"`
	// contains filtered or unexported fields
}

func (*AnalyzeCommits_Response) Descriptor deprecated

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

Deprecated: Use AnalyzeCommits_Response.ProtoReflect.Descriptor instead.

func (*AnalyzeCommits_Response) GetCommits

func (x *AnalyzeCommits_Response) GetCommits() []*semrel.Commit

func (*AnalyzeCommits_Response) ProtoMessage

func (*AnalyzeCommits_Response) ProtoMessage()

func (*AnalyzeCommits_Response) ProtoReflect

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

func (*AnalyzeCommits_Response) Reset

func (x *AnalyzeCommits_Response) Reset()

func (*AnalyzeCommits_Response) String

func (x *AnalyzeCommits_Response) String() string

type CommitAnalyzer

type CommitAnalyzer interface {
	Analyze([]*semrel.RawCommit) []*semrel.Commit
}

type CommitAnalyzerClient

type CommitAnalyzerClient struct {
	Impl CommitAnalyzerPluginClient
}

func (*CommitAnalyzerClient) Analyze

func (c *CommitAnalyzerClient) Analyze(commits []*semrel.RawCommit) []*semrel.Commit

type CommitAnalyzerPluginClient

type CommitAnalyzerPluginClient interface {
	Analyze(ctx context.Context, in *AnalyzeCommits_Request, opts ...grpc.CallOption) (*AnalyzeCommits_Response, error)
}

CommitAnalyzerPluginClient is the client API for CommitAnalyzerPlugin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type CommitAnalyzerPluginServer

type CommitAnalyzerPluginServer interface {
	Analyze(context.Context, *AnalyzeCommits_Request) (*AnalyzeCommits_Response, error)
	// contains filtered or unexported methods
}

CommitAnalyzerPluginServer is the server API for CommitAnalyzerPlugin service. All implementations must embed UnimplementedCommitAnalyzerPluginServer for forward compatibility

type CommitAnalyzerServer

type CommitAnalyzerServer struct {
	Impl CommitAnalyzer
	UnimplementedCommitAnalyzerPluginServer
}

func (*CommitAnalyzerServer) Analyze

type UnimplementedCommitAnalyzerPluginServer

type UnimplementedCommitAnalyzerPluginServer struct {
}

UnimplementedCommitAnalyzerPluginServer must be embedded to have forward compatible implementations.

func (*UnimplementedCommitAnalyzerPluginServer) Analyze

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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