analyzer

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: MIT Imports: 11 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 {
	Init(map[string]string) error
	Name() string
	Version() string
	Analyze([]*semrel.RawCommit) []*semrel.Commit
}

type CommitAnalyzerClient

type CommitAnalyzerClient struct {
	Impl CommitAnalyzerPluginClient
}

func (*CommitAnalyzerClient) Analyze

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

func (*CommitAnalyzerClient) Init added in v2.3.0

func (c *CommitAnalyzerClient) Init(m map[string]string) error

func (*CommitAnalyzerClient) Name added in v2.3.0

func (c *CommitAnalyzerClient) Name() string

func (*CommitAnalyzerClient) Version added in v2.3.0

func (c *CommitAnalyzerClient) Version() string

type CommitAnalyzerInit added in v2.3.0

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

func (*CommitAnalyzerInit) Descriptor deprecated added in v2.3.0

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

Deprecated: Use CommitAnalyzerInit.ProtoReflect.Descriptor instead.

func (*CommitAnalyzerInit) ProtoMessage added in v2.3.0

func (*CommitAnalyzerInit) ProtoMessage()

func (*CommitAnalyzerInit) ProtoReflect added in v2.3.0

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

func (*CommitAnalyzerInit) Reset added in v2.3.0

func (x *CommitAnalyzerInit) Reset()

func (*CommitAnalyzerInit) String added in v2.3.0

func (x *CommitAnalyzerInit) String() string

type CommitAnalyzerInit_Request added in v2.3.0

type CommitAnalyzerInit_Request struct {
	Config map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CommitAnalyzerInit_Request) Descriptor deprecated added in v2.3.0

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

Deprecated: Use CommitAnalyzerInit_Request.ProtoReflect.Descriptor instead.

func (*CommitAnalyzerInit_Request) GetConfig added in v2.3.0

func (x *CommitAnalyzerInit_Request) GetConfig() map[string]string

func (*CommitAnalyzerInit_Request) ProtoMessage added in v2.3.0

func (*CommitAnalyzerInit_Request) ProtoMessage()

func (*CommitAnalyzerInit_Request) ProtoReflect added in v2.3.0

func (*CommitAnalyzerInit_Request) Reset added in v2.3.0

func (x *CommitAnalyzerInit_Request) Reset()

func (*CommitAnalyzerInit_Request) String added in v2.3.0

func (x *CommitAnalyzerInit_Request) String() string

type CommitAnalyzerInit_Response added in v2.3.0

type CommitAnalyzerInit_Response struct {
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitAnalyzerInit_Response) Descriptor deprecated added in v2.3.0

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

Deprecated: Use CommitAnalyzerInit_Response.ProtoReflect.Descriptor instead.

func (*CommitAnalyzerInit_Response) GetError added in v2.3.0

func (x *CommitAnalyzerInit_Response) GetError() string

func (*CommitAnalyzerInit_Response) ProtoMessage added in v2.3.0

func (*CommitAnalyzerInit_Response) ProtoMessage()

func (*CommitAnalyzerInit_Response) ProtoReflect added in v2.3.0

func (*CommitAnalyzerInit_Response) Reset added in v2.3.0

func (x *CommitAnalyzerInit_Response) Reset()

func (*CommitAnalyzerInit_Response) String added in v2.3.0

func (x *CommitAnalyzerInit_Response) String() string

type CommitAnalyzerName added in v2.3.0

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

func (*CommitAnalyzerName) Descriptor deprecated added in v2.3.0

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

Deprecated: Use CommitAnalyzerName.ProtoReflect.Descriptor instead.

func (*CommitAnalyzerName) ProtoMessage added in v2.3.0

func (*CommitAnalyzerName) ProtoMessage()

func (*CommitAnalyzerName) ProtoReflect added in v2.3.0

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

func (*CommitAnalyzerName) Reset added in v2.3.0

func (x *CommitAnalyzerName) Reset()

func (*CommitAnalyzerName) String added in v2.3.0

func (x *CommitAnalyzerName) String() string

type CommitAnalyzerName_Request added in v2.3.0

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

func (*CommitAnalyzerName_Request) Descriptor deprecated added in v2.3.0

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

Deprecated: Use CommitAnalyzerName_Request.ProtoReflect.Descriptor instead.

func (*CommitAnalyzerName_Request) ProtoMessage added in v2.3.0

func (*CommitAnalyzerName_Request) ProtoMessage()

func (*CommitAnalyzerName_Request) ProtoReflect added in v2.3.0

func (*CommitAnalyzerName_Request) Reset added in v2.3.0

func (x *CommitAnalyzerName_Request) Reset()

func (*CommitAnalyzerName_Request) String added in v2.3.0

func (x *CommitAnalyzerName_Request) String() string

type CommitAnalyzerName_Response added in v2.3.0

type CommitAnalyzerName_Response struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitAnalyzerName_Response) Descriptor deprecated added in v2.3.0

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

Deprecated: Use CommitAnalyzerName_Response.ProtoReflect.Descriptor instead.

func (*CommitAnalyzerName_Response) GetName added in v2.3.0

func (x *CommitAnalyzerName_Response) GetName() string

func (*CommitAnalyzerName_Response) ProtoMessage added in v2.3.0

func (*CommitAnalyzerName_Response) ProtoMessage()

func (*CommitAnalyzerName_Response) ProtoReflect added in v2.3.0

func (*CommitAnalyzerName_Response) Reset added in v2.3.0

func (x *CommitAnalyzerName_Response) Reset()

func (*CommitAnalyzerName_Response) String added in v2.3.0

func (x *CommitAnalyzerName_Response) String() string

type CommitAnalyzerPluginClient

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

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

func (*CommitAnalyzerServer) Init added in v2.3.0

func (*CommitAnalyzerServer) Name added in v2.3.0

func (*CommitAnalyzerServer) Version added in v2.3.0

type CommitAnalyzerVersion added in v2.3.0

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

func (*CommitAnalyzerVersion) Descriptor deprecated added in v2.3.0

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

Deprecated: Use CommitAnalyzerVersion.ProtoReflect.Descriptor instead.

func (*CommitAnalyzerVersion) ProtoMessage added in v2.3.0

func (*CommitAnalyzerVersion) ProtoMessage()

func (*CommitAnalyzerVersion) ProtoReflect added in v2.3.0

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

func (*CommitAnalyzerVersion) Reset added in v2.3.0

func (x *CommitAnalyzerVersion) Reset()

func (*CommitAnalyzerVersion) String added in v2.3.0

func (x *CommitAnalyzerVersion) String() string

type CommitAnalyzerVersion_Request added in v2.3.0

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

func (*CommitAnalyzerVersion_Request) Descriptor deprecated added in v2.3.0

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

Deprecated: Use CommitAnalyzerVersion_Request.ProtoReflect.Descriptor instead.

func (*CommitAnalyzerVersion_Request) ProtoMessage added in v2.3.0

func (*CommitAnalyzerVersion_Request) ProtoMessage()

func (*CommitAnalyzerVersion_Request) ProtoReflect added in v2.3.0

func (*CommitAnalyzerVersion_Request) Reset added in v2.3.0

func (x *CommitAnalyzerVersion_Request) Reset()

func (*CommitAnalyzerVersion_Request) String added in v2.3.0

type CommitAnalyzerVersion_Response added in v2.3.0

type CommitAnalyzerVersion_Response struct {
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitAnalyzerVersion_Response) Descriptor deprecated added in v2.3.0

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

Deprecated: Use CommitAnalyzerVersion_Response.ProtoReflect.Descriptor instead.

func (*CommitAnalyzerVersion_Response) GetVersion added in v2.3.0

func (x *CommitAnalyzerVersion_Response) GetVersion() string

func (*CommitAnalyzerVersion_Response) ProtoMessage added in v2.3.0

func (*CommitAnalyzerVersion_Response) ProtoMessage()

func (*CommitAnalyzerVersion_Response) ProtoReflect added in v2.3.0

func (*CommitAnalyzerVersion_Response) Reset added in v2.3.0

func (x *CommitAnalyzerVersion_Response) Reset()

func (*CommitAnalyzerVersion_Response) String added in v2.3.0

type UnimplementedCommitAnalyzerPluginServer

type UnimplementedCommitAnalyzerPluginServer struct {
}

UnimplementedCommitAnalyzerPluginServer must be embedded to have forward compatible implementations.

func (*UnimplementedCommitAnalyzerPluginServer) Analyze

func (*UnimplementedCommitAnalyzerPluginServer) Init added in v2.3.0

func (*UnimplementedCommitAnalyzerPluginServer) Name added in v2.3.0

func (*UnimplementedCommitAnalyzerPluginServer) Version added in v2.3.0

Jump to

Keyboard shortcuts

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