analyzer

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const CommitAnalyzerPluginName = "commit_analyzer"

Variables

View Source
var CommitAnalyzerPlugin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "CommitAnalyzerPlugin",
	HandlerType: (*CommitAnalyzerPluginServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Init",
			Handler:    _CommitAnalyzerPlugin_Init_Handler,
		},
		{
			MethodName: "Name",
			Handler:    _CommitAnalyzerPlugin_Name_Handler,
		},
		{
			MethodName: "Version",
			Handler:    _CommitAnalyzerPlugin_Version_Handler,
		},
		{
			MethodName: "Analyze",
			Handler:    _CommitAnalyzerPlugin_Analyze_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/analyzer/commit_analyzer.proto",
}

CommitAnalyzerPlugin_ServiceDesc is the grpc.ServiceDesc for CommitAnalyzerPlugin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_pkg_analyzer_commit_analyzer_proto protoreflect.FileDescriptor

Functions

func RegisterCommitAnalyzerPluginServer

func RegisterCommitAnalyzerPluginServer(s grpc.ServiceRegistrar, 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

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

func (*CommitAnalyzerClient) Name

func (c *CommitAnalyzerClient) Name() string

func (*CommitAnalyzerClient) Version

func (c *CommitAnalyzerClient) Version() string

type CommitAnalyzerInit

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

func (*CommitAnalyzerInit) Descriptor deprecated

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

Deprecated: Use CommitAnalyzerInit.ProtoReflect.Descriptor instead.

func (*CommitAnalyzerInit) ProtoMessage

func (*CommitAnalyzerInit) ProtoMessage()

func (*CommitAnalyzerInit) ProtoReflect

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

func (*CommitAnalyzerInit) Reset

func (x *CommitAnalyzerInit) Reset()

func (*CommitAnalyzerInit) String

func (x *CommitAnalyzerInit) String() string

type CommitAnalyzerInit_Request

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

func (*CommitAnalyzerInit_Request) Descriptor deprecated

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

Deprecated: Use CommitAnalyzerInit_Request.ProtoReflect.Descriptor instead.

func (*CommitAnalyzerInit_Request) GetConfig

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

func (*CommitAnalyzerInit_Request) ProtoMessage

func (*CommitAnalyzerInit_Request) ProtoMessage()

func (*CommitAnalyzerInit_Request) ProtoReflect

func (*CommitAnalyzerInit_Request) Reset

func (x *CommitAnalyzerInit_Request) Reset()

func (*CommitAnalyzerInit_Request) String

func (x *CommitAnalyzerInit_Request) String() string

type CommitAnalyzerInit_Response

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

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

Deprecated: Use CommitAnalyzerInit_Response.ProtoReflect.Descriptor instead.

func (*CommitAnalyzerInit_Response) GetError

func (x *CommitAnalyzerInit_Response) GetError() string

func (*CommitAnalyzerInit_Response) ProtoMessage

func (*CommitAnalyzerInit_Response) ProtoMessage()

func (*CommitAnalyzerInit_Response) ProtoReflect

func (*CommitAnalyzerInit_Response) Reset

func (x *CommitAnalyzerInit_Response) Reset()

func (*CommitAnalyzerInit_Response) String

func (x *CommitAnalyzerInit_Response) String() string

type CommitAnalyzerName

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

func (*CommitAnalyzerName) Descriptor deprecated

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

Deprecated: Use CommitAnalyzerName.ProtoReflect.Descriptor instead.

func (*CommitAnalyzerName) ProtoMessage

func (*CommitAnalyzerName) ProtoMessage()

func (*CommitAnalyzerName) ProtoReflect

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

func (*CommitAnalyzerName) Reset

func (x *CommitAnalyzerName) Reset()

func (*CommitAnalyzerName) String

func (x *CommitAnalyzerName) String() string

type CommitAnalyzerName_Request

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

func (*CommitAnalyzerName_Request) Descriptor deprecated

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

Deprecated: Use CommitAnalyzerName_Request.ProtoReflect.Descriptor instead.

func (*CommitAnalyzerName_Request) ProtoMessage

func (*CommitAnalyzerName_Request) ProtoMessage()

func (*CommitAnalyzerName_Request) ProtoReflect

func (*CommitAnalyzerName_Request) Reset

func (x *CommitAnalyzerName_Request) Reset()

func (*CommitAnalyzerName_Request) String

func (x *CommitAnalyzerName_Request) String() string

type CommitAnalyzerName_Response

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

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

Deprecated: Use CommitAnalyzerName_Response.ProtoReflect.Descriptor instead.

func (*CommitAnalyzerName_Response) GetName

func (x *CommitAnalyzerName_Response) GetName() string

func (*CommitAnalyzerName_Response) ProtoMessage

func (*CommitAnalyzerName_Response) ProtoMessage()

func (*CommitAnalyzerName_Response) ProtoReflect

func (*CommitAnalyzerName_Response) Reset

func (x *CommitAnalyzerName_Response) Reset()

func (*CommitAnalyzerName_Response) String

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

func (*CommitAnalyzerServer) Name

func (*CommitAnalyzerServer) Version

type CommitAnalyzerVersion

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

func (*CommitAnalyzerVersion) Descriptor deprecated

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

Deprecated: Use CommitAnalyzerVersion.ProtoReflect.Descriptor instead.

func (*CommitAnalyzerVersion) ProtoMessage

func (*CommitAnalyzerVersion) ProtoMessage()

func (*CommitAnalyzerVersion) ProtoReflect

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

func (*CommitAnalyzerVersion) Reset

func (x *CommitAnalyzerVersion) Reset()

func (*CommitAnalyzerVersion) String

func (x *CommitAnalyzerVersion) String() string

type CommitAnalyzerVersion_Request

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

func (*CommitAnalyzerVersion_Request) Descriptor deprecated

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

Deprecated: Use CommitAnalyzerVersion_Request.ProtoReflect.Descriptor instead.

func (*CommitAnalyzerVersion_Request) ProtoMessage

func (*CommitAnalyzerVersion_Request) ProtoMessage()

func (*CommitAnalyzerVersion_Request) ProtoReflect

func (*CommitAnalyzerVersion_Request) Reset

func (x *CommitAnalyzerVersion_Request) Reset()

func (*CommitAnalyzerVersion_Request) String

type CommitAnalyzerVersion_Response

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

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

Deprecated: Use CommitAnalyzerVersion_Response.ProtoReflect.Descriptor instead.

func (*CommitAnalyzerVersion_Response) GetVersion

func (x *CommitAnalyzerVersion_Response) GetVersion() string

func (*CommitAnalyzerVersion_Response) ProtoMessage

func (*CommitAnalyzerVersion_Response) ProtoMessage()

func (*CommitAnalyzerVersion_Response) ProtoReflect

func (*CommitAnalyzerVersion_Response) Reset

func (x *CommitAnalyzerVersion_Response) Reset()

func (*CommitAnalyzerVersion_Response) String

type UnimplementedCommitAnalyzerPluginServer

type UnimplementedCommitAnalyzerPluginServer struct {
}

UnimplementedCommitAnalyzerPluginServer must be embedded to have forward compatible implementations.

func (UnimplementedCommitAnalyzerPluginServer) Analyze

type UnsafeCommitAnalyzerPluginServer

type UnsafeCommitAnalyzerPluginServer interface {
	// contains filtered or unexported methods
}

UnsafeCommitAnalyzerPluginServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CommitAnalyzerPluginServer will result in compilation errors.

Jump to

Keyboard shortcuts

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