• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pact-foundation / pact-go / 14842327637

05 May 2025 05:25PM UTC coverage: 28.238%. Remained the same
14842327637

Pull #519

github

web-flow
build(deps): bump golangci/golangci-lint-action from 6 to 8

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6 to 8.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v6...v8)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #519: build(deps): bump golangci/golangci-lint-action from 6 to 8

1805 of 6392 relevant lines covered (28.24%)

8.25 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/internal/native/io.pact.plugin/plugin_grpc.pb.go
1
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
2
// versions:
3
// - protoc-gen-go-grpc v1.2.0
4
// - protoc             v3.19.4
5
// source: pact_plugin.proto
6

7
package io_pact_plugin
8

9
import (
10
        context "context"
11
        grpc "google.golang.org/grpc"
12
        codes "google.golang.org/grpc/codes"
13
        status "google.golang.org/grpc/status"
14
        emptypb "google.golang.org/protobuf/types/known/emptypb"
15
)
16

17
// This is a compile-time assertion to ensure that this generated file
18
// is compatible with the grpc package it is being compiled against.
19
// Requires gRPC-Go v1.32.0 or later.
20
const _ = grpc.SupportPackageIsVersion7
21

22
// PactPluginClient is the client API for PactPlugin service.
23
//
24
// 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.
25
type PactPluginClient interface {
26
        // Check that the plugin loaded OK. Returns the catalogue entries describing what the plugin provides
27
        InitPlugin(ctx context.Context, in *InitPluginRequest, opts ...grpc.CallOption) (*InitPluginResponse, error)
28
        // Updated catalogue. This will be sent when the core catalogue has been updated (probably by a plugin loading).
29
        UpdateCatalogue(ctx context.Context, in *Catalogue, opts ...grpc.CallOption) (*emptypb.Empty, error)
30
        // Request to perform a comparison of some contents (matching request)
31
        CompareContents(ctx context.Context, in *CompareContentsRequest, opts ...grpc.CallOption) (*CompareContentsResponse, error)
32
        // Request to configure/setup the interaction for later verification. Data returned will be persisted in the pact file.
33
        ConfigureInteraction(ctx context.Context, in *ConfigureInteractionRequest, opts ...grpc.CallOption) (*ConfigureInteractionResponse, error)
34
        // Request to generate the content using any defined generators
35
        GenerateContent(ctx context.Context, in *GenerateContentRequest, opts ...grpc.CallOption) (*GenerateContentResponse, error)
36
}
37

38
type pactPluginClient struct {
39
        cc grpc.ClientConnInterface
40
}
41

42
func NewPactPluginClient(cc grpc.ClientConnInterface) PactPluginClient {
×
43
        return &pactPluginClient{cc}
×
44
}
×
45

46
func (c *pactPluginClient) InitPlugin(ctx context.Context, in *InitPluginRequest, opts ...grpc.CallOption) (*InitPluginResponse, error) {
×
47
        out := new(InitPluginResponse)
×
48
        err := c.cc.Invoke(ctx, "/io.pact.plugin.PactPlugin/InitPlugin", in, out, opts...)
×
49
        if err != nil {
×
50
                return nil, err
×
51
        }
×
52
        return out, nil
×
53
}
54

55
func (c *pactPluginClient) UpdateCatalogue(ctx context.Context, in *Catalogue, opts ...grpc.CallOption) (*emptypb.Empty, error) {
×
56
        out := new(emptypb.Empty)
×
57
        err := c.cc.Invoke(ctx, "/io.pact.plugin.PactPlugin/UpdateCatalogue", in, out, opts...)
×
58
        if err != nil {
×
59
                return nil, err
×
60
        }
×
61
        return out, nil
×
62
}
63

64
func (c *pactPluginClient) CompareContents(ctx context.Context, in *CompareContentsRequest, opts ...grpc.CallOption) (*CompareContentsResponse, error) {
×
65
        out := new(CompareContentsResponse)
×
66
        err := c.cc.Invoke(ctx, "/io.pact.plugin.PactPlugin/CompareContents", in, out, opts...)
×
67
        if err != nil {
×
68
                return nil, err
×
69
        }
×
70
        return out, nil
×
71
}
72

73
func (c *pactPluginClient) ConfigureInteraction(ctx context.Context, in *ConfigureInteractionRequest, opts ...grpc.CallOption) (*ConfigureInteractionResponse, error) {
×
74
        out := new(ConfigureInteractionResponse)
×
75
        err := c.cc.Invoke(ctx, "/io.pact.plugin.PactPlugin/ConfigureInteraction", in, out, opts...)
×
76
        if err != nil {
×
77
                return nil, err
×
78
        }
×
79
        return out, nil
×
80
}
81

82
func (c *pactPluginClient) GenerateContent(ctx context.Context, in *GenerateContentRequest, opts ...grpc.CallOption) (*GenerateContentResponse, error) {
×
83
        out := new(GenerateContentResponse)
×
84
        err := c.cc.Invoke(ctx, "/io.pact.plugin.PactPlugin/GenerateContent", in, out, opts...)
×
85
        if err != nil {
×
86
                return nil, err
×
87
        }
×
88
        return out, nil
×
89
}
90

91
// PactPluginServer is the server API for PactPlugin service.
92
// All implementations must embed UnimplementedPactPluginServer
93
// for forward compatibility
94
type PactPluginServer interface {
95
        // Check that the plugin loaded OK. Returns the catalogue entries describing what the plugin provides
96
        InitPlugin(context.Context, *InitPluginRequest) (*InitPluginResponse, error)
97
        // Updated catalogue. This will be sent when the core catalogue has been updated (probably by a plugin loading).
98
        UpdateCatalogue(context.Context, *Catalogue) (*emptypb.Empty, error)
99
        // Request to perform a comparison of some contents (matching request)
100
        CompareContents(context.Context, *CompareContentsRequest) (*CompareContentsResponse, error)
101
        // Request to configure/setup the interaction for later verification. Data returned will be persisted in the pact file.
102
        ConfigureInteraction(context.Context, *ConfigureInteractionRequest) (*ConfigureInteractionResponse, error)
103
        // Request to generate the content using any defined generators
104
        GenerateContent(context.Context, *GenerateContentRequest) (*GenerateContentResponse, error)
105
        mustEmbedUnimplementedPactPluginServer()
106
}
107

108
// UnimplementedPactPluginServer must be embedded to have forward compatible implementations.
109
type UnimplementedPactPluginServer struct {
110
}
111

112
func (UnimplementedPactPluginServer) InitPlugin(context.Context, *InitPluginRequest) (*InitPluginResponse, error) {
×
113
        return nil, status.Errorf(codes.Unimplemented, "method InitPlugin not implemented")
×
114
}
×
115
func (UnimplementedPactPluginServer) UpdateCatalogue(context.Context, *Catalogue) (*emptypb.Empty, error) {
×
116
        return nil, status.Errorf(codes.Unimplemented, "method UpdateCatalogue not implemented")
×
117
}
×
118
func (UnimplementedPactPluginServer) CompareContents(context.Context, *CompareContentsRequest) (*CompareContentsResponse, error) {
×
119
        return nil, status.Errorf(codes.Unimplemented, "method CompareContents not implemented")
×
120
}
×
121
func (UnimplementedPactPluginServer) ConfigureInteraction(context.Context, *ConfigureInteractionRequest) (*ConfigureInteractionResponse, error) {
×
122
        return nil, status.Errorf(codes.Unimplemented, "method ConfigureInteraction not implemented")
×
123
}
×
124
func (UnimplementedPactPluginServer) GenerateContent(context.Context, *GenerateContentRequest) (*GenerateContentResponse, error) {
×
125
        return nil, status.Errorf(codes.Unimplemented, "method GenerateContent not implemented")
×
126
}
×
127
func (UnimplementedPactPluginServer) mustEmbedUnimplementedPactPluginServer() {}
×
128

129
// UnsafePactPluginServer may be embedded to opt out of forward compatibility for this service.
130
// Use of this interface is not recommended, as added methods to PactPluginServer will
131
// result in compilation errors.
132
type UnsafePactPluginServer interface {
133
        mustEmbedUnimplementedPactPluginServer()
134
}
135

136
func RegisterPactPluginServer(s grpc.ServiceRegistrar, srv PactPluginServer) {
×
137
        s.RegisterService(&PactPlugin_ServiceDesc, srv)
×
138
}
×
139

140
func _PactPlugin_InitPlugin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
141
        in := new(InitPluginRequest)
×
142
        if err := dec(in); err != nil {
×
143
                return nil, err
×
144
        }
×
145
        if interceptor == nil {
×
146
                return srv.(PactPluginServer).InitPlugin(ctx, in)
×
147
        }
×
148
        info := &grpc.UnaryServerInfo{
×
149
                Server:     srv,
×
150
                FullMethod: "/io.pact.plugin.PactPlugin/InitPlugin",
×
151
        }
×
152
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
153
                return srv.(PactPluginServer).InitPlugin(ctx, req.(*InitPluginRequest))
×
154
        }
×
155
        return interceptor(ctx, in, info, handler)
×
156
}
157

158
func _PactPlugin_UpdateCatalogue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
159
        in := new(Catalogue)
×
160
        if err := dec(in); err != nil {
×
161
                return nil, err
×
162
        }
×
163
        if interceptor == nil {
×
164
                return srv.(PactPluginServer).UpdateCatalogue(ctx, in)
×
165
        }
×
166
        info := &grpc.UnaryServerInfo{
×
167
                Server:     srv,
×
168
                FullMethod: "/io.pact.plugin.PactPlugin/UpdateCatalogue",
×
169
        }
×
170
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
171
                return srv.(PactPluginServer).UpdateCatalogue(ctx, req.(*Catalogue))
×
172
        }
×
173
        return interceptor(ctx, in, info, handler)
×
174
}
175

176
func _PactPlugin_CompareContents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
177
        in := new(CompareContentsRequest)
×
178
        if err := dec(in); err != nil {
×
179
                return nil, err
×
180
        }
×
181
        if interceptor == nil {
×
182
                return srv.(PactPluginServer).CompareContents(ctx, in)
×
183
        }
×
184
        info := &grpc.UnaryServerInfo{
×
185
                Server:     srv,
×
186
                FullMethod: "/io.pact.plugin.PactPlugin/CompareContents",
×
187
        }
×
188
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
189
                return srv.(PactPluginServer).CompareContents(ctx, req.(*CompareContentsRequest))
×
190
        }
×
191
        return interceptor(ctx, in, info, handler)
×
192
}
193

194
func _PactPlugin_ConfigureInteraction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
195
        in := new(ConfigureInteractionRequest)
×
196
        if err := dec(in); err != nil {
×
197
                return nil, err
×
198
        }
×
199
        if interceptor == nil {
×
200
                return srv.(PactPluginServer).ConfigureInteraction(ctx, in)
×
201
        }
×
202
        info := &grpc.UnaryServerInfo{
×
203
                Server:     srv,
×
204
                FullMethod: "/io.pact.plugin.PactPlugin/ConfigureInteraction",
×
205
        }
×
206
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
207
                return srv.(PactPluginServer).ConfigureInteraction(ctx, req.(*ConfigureInteractionRequest))
×
208
        }
×
209
        return interceptor(ctx, in, info, handler)
×
210
}
211

212
func _PactPlugin_GenerateContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
×
213
        in := new(GenerateContentRequest)
×
214
        if err := dec(in); err != nil {
×
215
                return nil, err
×
216
        }
×
217
        if interceptor == nil {
×
218
                return srv.(PactPluginServer).GenerateContent(ctx, in)
×
219
        }
×
220
        info := &grpc.UnaryServerInfo{
×
221
                Server:     srv,
×
222
                FullMethod: "/io.pact.plugin.PactPlugin/GenerateContent",
×
223
        }
×
224
        handler := func(ctx context.Context, req interface{}) (interface{}, error) {
×
225
                return srv.(PactPluginServer).GenerateContent(ctx, req.(*GenerateContentRequest))
×
226
        }
×
227
        return interceptor(ctx, in, info, handler)
×
228
}
229

230
// PactPlugin_ServiceDesc is the grpc.ServiceDesc for PactPlugin service.
231
// It's only intended for direct use with grpc.RegisterService,
232
// and not to be introspected or modified (even as a copy)
233
var PactPlugin_ServiceDesc = grpc.ServiceDesc{
234
        ServiceName: "io.pact.plugin.PactPlugin",
235
        HandlerType: (*PactPluginServer)(nil),
236
        Methods: []grpc.MethodDesc{
237
                {
238
                        MethodName: "InitPlugin",
239
                        Handler:    _PactPlugin_InitPlugin_Handler,
240
                },
241
                {
242
                        MethodName: "UpdateCatalogue",
243
                        Handler:    _PactPlugin_UpdateCatalogue_Handler,
244
                },
245
                {
246
                        MethodName: "CompareContents",
247
                        Handler:    _PactPlugin_CompareContents_Handler,
248
                },
249
                {
250
                        MethodName: "ConfigureInteraction",
251
                        Handler:    _PactPlugin_ConfigureInteraction_Handler,
252
                },
253
                {
254
                        MethodName: "GenerateContent",
255
                        Handler:    _PactPlugin_GenerateContent_Handler,
256
                },
257
        },
258
        Streams:  []grpc.StreamDesc{},
259
        Metadata: "pact_plugin.proto",
260
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc