Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCommitAnalyzerPluginServer(s grpc.ServiceRegistrar, srv CommitAnalyzerPluginServer)
- type AnalyzeCommits
- type AnalyzeCommits_Request
- func (*AnalyzeCommits_Request) Descriptor() ([]byte, []int)deprecated
- func (x *AnalyzeCommits_Request) GetRawCommits() []*semrel.RawCommit
- func (*AnalyzeCommits_Request) ProtoMessage()
- func (x *AnalyzeCommits_Request) ProtoReflect() protoreflect.Message
- func (x *AnalyzeCommits_Request) Reset()
- func (x *AnalyzeCommits_Request) String() string
- type AnalyzeCommits_Response
- func (*AnalyzeCommits_Response) Descriptor() ([]byte, []int)deprecated
- func (x *AnalyzeCommits_Response) GetCommits() []*semrel.Commit
- func (*AnalyzeCommits_Response) ProtoMessage()
- func (x *AnalyzeCommits_Response) ProtoReflect() protoreflect.Message
- func (x *AnalyzeCommits_Response) Reset()
- func (x *AnalyzeCommits_Response) String() string
- type CommitAnalyzer
- type CommitAnalyzerClient
- type CommitAnalyzerInit
- type CommitAnalyzerInit_Request
- func (*CommitAnalyzerInit_Request) Descriptor() ([]byte, []int)deprecated
- func (x *CommitAnalyzerInit_Request) GetConfig() map[string]string
- func (*CommitAnalyzerInit_Request) ProtoMessage()
- func (x *CommitAnalyzerInit_Request) ProtoReflect() protoreflect.Message
- func (x *CommitAnalyzerInit_Request) Reset()
- func (x *CommitAnalyzerInit_Request) String() string
- type CommitAnalyzerInit_Response
- func (*CommitAnalyzerInit_Response) Descriptor() ([]byte, []int)deprecated
- func (x *CommitAnalyzerInit_Response) GetError() string
- func (*CommitAnalyzerInit_Response) ProtoMessage()
- func (x *CommitAnalyzerInit_Response) ProtoReflect() protoreflect.Message
- func (x *CommitAnalyzerInit_Response) Reset()
- func (x *CommitAnalyzerInit_Response) String() string
- type CommitAnalyzerName
- type CommitAnalyzerName_Request
- type CommitAnalyzerName_Response
- func (*CommitAnalyzerName_Response) Descriptor() ([]byte, []int)deprecated
- func (x *CommitAnalyzerName_Response) GetName() string
- func (*CommitAnalyzerName_Response) ProtoMessage()
- func (x *CommitAnalyzerName_Response) ProtoReflect() protoreflect.Message
- func (x *CommitAnalyzerName_Response) Reset()
- func (x *CommitAnalyzerName_Response) String() string
- type CommitAnalyzerPluginClient
- type CommitAnalyzerPluginServer
- type CommitAnalyzerServer
- func (c *CommitAnalyzerServer) Analyze(ctx context.Context, request *AnalyzeCommits_Request) (*AnalyzeCommits_Response, error)
- func (c *CommitAnalyzerServer) Init(ctx context.Context, request *CommitAnalyzerInit_Request) (*CommitAnalyzerInit_Response, error)
- func (c *CommitAnalyzerServer) Name(ctx context.Context, request *CommitAnalyzerName_Request) (*CommitAnalyzerName_Response, error)
- func (c *CommitAnalyzerServer) Version(ctx context.Context, request *CommitAnalyzerVersion_Request) (*CommitAnalyzerVersion_Response, error)
- type CommitAnalyzerVersion
- type CommitAnalyzerVersion_Request
- func (*CommitAnalyzerVersion_Request) Descriptor() ([]byte, []int)deprecated
- func (*CommitAnalyzerVersion_Request) ProtoMessage()
- func (x *CommitAnalyzerVersion_Request) ProtoReflect() protoreflect.Message
- func (x *CommitAnalyzerVersion_Request) Reset()
- func (x *CommitAnalyzerVersion_Request) String() string
- type CommitAnalyzerVersion_Response
- func (*CommitAnalyzerVersion_Response) Descriptor() ([]byte, []int)deprecated
- func (x *CommitAnalyzerVersion_Response) GetVersion() string
- func (*CommitAnalyzerVersion_Response) ProtoMessage()
- func (x *CommitAnalyzerVersion_Response) ProtoReflect() protoreflect.Message
- func (x *CommitAnalyzerVersion_Response) Reset()
- func (x *CommitAnalyzerVersion_Response) String() string
- type UnimplementedCommitAnalyzerPluginServer
- func (UnimplementedCommitAnalyzerPluginServer) Analyze(context.Context, *AnalyzeCommits_Request) (*AnalyzeCommits_Response, error)
- func (UnimplementedCommitAnalyzerPluginServer) Init(context.Context, *CommitAnalyzerInit_Request) (*CommitAnalyzerInit_Response, error)
- func (UnimplementedCommitAnalyzerPluginServer) Name(context.Context, *CommitAnalyzerName_Request) (*CommitAnalyzerName_Response, error)
- func (UnimplementedCommitAnalyzerPluginServer) Version(context.Context, *CommitAnalyzerVersion_Request) (*CommitAnalyzerVersion_Response, error)
- type UnsafeCommitAnalyzerPluginServer
Constants ¶
const CommitAnalyzerPluginName = "commit_analyzer"
Variables ¶
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)
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 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 (x *CommitAnalyzerInit_Request) ProtoReflect() protoreflect.Message
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 (x *CommitAnalyzerInit_Response) ProtoReflect() protoreflect.Message
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 (x *CommitAnalyzerName_Request) ProtoReflect() protoreflect.Message
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 (x *CommitAnalyzerName_Response) ProtoReflect() protoreflect.Message
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 ¶
type CommitAnalyzerPluginClient interface { Init(ctx context.Context, in *CommitAnalyzerInit_Request, opts ...grpc.CallOption) (*CommitAnalyzerInit_Response, error) Name(ctx context.Context, in *CommitAnalyzerName_Request, opts ...grpc.CallOption) (*CommitAnalyzerName_Response, error) Version(ctx context.Context, in *CommitAnalyzerVersion_Request, opts ...grpc.CallOption) (*CommitAnalyzerVersion_Response, error) 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.
func NewCommitAnalyzerPluginClient ¶
func NewCommitAnalyzerPluginClient(cc grpc.ClientConnInterface) CommitAnalyzerPluginClient
type CommitAnalyzerPluginServer ¶
type CommitAnalyzerPluginServer interface { Init(context.Context, *CommitAnalyzerInit_Request) (*CommitAnalyzerInit_Response, error) Name(context.Context, *CommitAnalyzerName_Request) (*CommitAnalyzerName_Response, error) Version(context.Context, *CommitAnalyzerVersion_Request) (*CommitAnalyzerVersion_Response, error) 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 ¶
func (c *CommitAnalyzerServer) Analyze(ctx context.Context, request *AnalyzeCommits_Request) (*AnalyzeCommits_Response, error)
func (*CommitAnalyzerServer) Init ¶ added in v2.3.0
func (c *CommitAnalyzerServer) Init(ctx context.Context, request *CommitAnalyzerInit_Request) (*CommitAnalyzerInit_Response, error)
func (*CommitAnalyzerServer) Name ¶ added in v2.3.0
func (c *CommitAnalyzerServer) Name(ctx context.Context, request *CommitAnalyzerName_Request) (*CommitAnalyzerName_Response, error)
func (*CommitAnalyzerServer) Version ¶ added in v2.3.0
func (c *CommitAnalyzerServer) Version(ctx context.Context, request *CommitAnalyzerVersion_Request) (*CommitAnalyzerVersion_Response, error)
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 (x *CommitAnalyzerVersion_Request) ProtoReflect() protoreflect.Message
func (*CommitAnalyzerVersion_Request) Reset ¶ added in v2.3.0
func (x *CommitAnalyzerVersion_Request) Reset()
func (*CommitAnalyzerVersion_Request) String ¶ added in v2.3.0
func (x *CommitAnalyzerVersion_Request) String() string
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 (x *CommitAnalyzerVersion_Response) ProtoReflect() protoreflect.Message
func (*CommitAnalyzerVersion_Response) Reset ¶ added in v2.3.0
func (x *CommitAnalyzerVersion_Response) Reset()
func (*CommitAnalyzerVersion_Response) String ¶ added in v2.3.0
func (x *CommitAnalyzerVersion_Response) String() string
type UnimplementedCommitAnalyzerPluginServer ¶
type UnimplementedCommitAnalyzerPluginServer struct { }
UnimplementedCommitAnalyzerPluginServer must be embedded to have forward compatible implementations.
func (UnimplementedCommitAnalyzerPluginServer) Analyze ¶
func (UnimplementedCommitAnalyzerPluginServer) Analyze(context.Context, *AnalyzeCommits_Request) (*AnalyzeCommits_Response, error)
type UnsafeCommitAnalyzerPluginServer ¶ added in v2.12.0
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.