To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 4704d6bc authored by Andrea Raguso's avatar Andrea Raguso
Browse files

update

parent a84109e1
......@@ -5,7 +5,7 @@ go 1.16
require (
github.com/golang/protobuf v1.5.2
github.com/mwitkow/go-proto-validators v0.3.2
google.golang.org/genproto v0.0.0-20210701191553-46259e63a0a9
google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea
google.golang.org/grpc v1.39.0
google.golang.org/protobuf v1.27.1
)
......@@ -12,7 +12,6 @@ github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymF
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
......@@ -115,15 +114,14 @@ google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoA
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
google.golang.org/genproto v0.0.0-20210701191553-46259e63a0a9 h1:HBPuvo39L0DgfVn9eHR3ki/RjZoUFWa+em77e7KFDfs=
google.golang.org/genproto v0.0.0-20210701191553-46259e63a0a9/go.mod h1:yiaVoXHpRzHGyxV3o4DktVWY4mSUErTKaeEOq6C3t3U=
google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea h1:8ZyCcgugUqamxp/vZSEJw9CMy7VZlSWYJLLJPi/dSDA=
google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0=
google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM=
google.golang.org/grpc v1.39.0 h1:Klz8I9kdtkIN6EpHHUOMLCYhTn/2WAe5a0s1hcBkdTI=
google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE=
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
......
This diff is collapsed.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
package payrexxwrapper
import (
context "context"
empty "github.com/golang/protobuf/ptypes/empty"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// PayrexxwrapperClient is the client API for Payrexxwrapper 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 PayrexxwrapperClient interface {
// CreateGateway creates a new gateway with Payrexx.
CreateGateway(ctx context.Context, in *Gateway, opts ...grpc.CallOption) (*Gateway, error)
// GetGateway returns the full gateway resource given its id.
GetGateway(ctx context.Context, in *GetGatewayRequest, opts ...grpc.CallOption) (*Gateway, error)
// BatchRefreshGateways will check the status of all provided gateways and return all gateways that have changed.
BatchRefreshGateways(ctx context.Context, in *BatchRefreshGatewaysRequest, opts ...grpc.CallOption) (*BatchRefreshGatewaysResponse, error)
// CheckLiveness returns whether the payrexx payment provider is functional.
CheckLiveness(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
// BatchUpdateGatewayFees updates the fee for recorded gateways from Payrexx transactions.
BatchUpdateGatewayFees(ctx context.Context, in *BatchUpdateGatewayFeesRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
type payrexxwrapperClient struct {
cc grpc.ClientConnInterface
}
func NewPayrexxwrapperClient(cc grpc.ClientConnInterface) PayrexxwrapperClient {
return &payrexxwrapperClient{cc}
}
func (c *payrexxwrapperClient) CreateGateway(ctx context.Context, in *Gateway, opts ...grpc.CallOption) (*Gateway, error) {
out := new(Gateway)
err := c.cc.Invoke(ctx, "/sip.payrexxwrapper.Payrexxwrapper/CreateGateway", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *payrexxwrapperClient) GetGateway(ctx context.Context, in *GetGatewayRequest, opts ...grpc.CallOption) (*Gateway, error) {
out := new(Gateway)
err := c.cc.Invoke(ctx, "/sip.payrexxwrapper.Payrexxwrapper/GetGateway", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *payrexxwrapperClient) BatchRefreshGateways(ctx context.Context, in *BatchRefreshGatewaysRequest, opts ...grpc.CallOption) (*BatchRefreshGatewaysResponse, error) {
out := new(BatchRefreshGatewaysResponse)
err := c.cc.Invoke(ctx, "/sip.payrexxwrapper.Payrexxwrapper/BatchRefreshGateways", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *payrexxwrapperClient) CheckLiveness(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/sip.payrexxwrapper.Payrexxwrapper/CheckLiveness", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *payrexxwrapperClient) BatchUpdateGatewayFees(ctx context.Context, in *BatchUpdateGatewayFeesRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/sip.payrexxwrapper.Payrexxwrapper/BatchUpdateGatewayFees", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// PayrexxwrapperServer is the server API for Payrexxwrapper service.
// All implementations must embed UnimplementedPayrexxwrapperServer
// for forward compatibility
type PayrexxwrapperServer interface {
// CreateGateway creates a new gateway with Payrexx.
CreateGateway(context.Context, *Gateway) (*Gateway, error)
// GetGateway returns the full gateway resource given its id.
GetGateway(context.Context, *GetGatewayRequest) (*Gateway, error)
// BatchRefreshGateways will check the status of all provided gateways and return all gateways that have changed.
BatchRefreshGateways(context.Context, *BatchRefreshGatewaysRequest) (*BatchRefreshGatewaysResponse, error)
// CheckLiveness returns whether the payrexx payment provider is functional.
CheckLiveness(context.Context, *empty.Empty) (*empty.Empty, error)
// BatchUpdateGatewayFees updates the fee for recorded gateways from Payrexx transactions.
BatchUpdateGatewayFees(context.Context, *BatchUpdateGatewayFeesRequest) (*empty.Empty, error)
mustEmbedUnimplementedPayrexxwrapperServer()
}
// UnimplementedPayrexxwrapperServer must be embedded to have forward compatible implementations.
type UnimplementedPayrexxwrapperServer struct {
}
func (UnimplementedPayrexxwrapperServer) CreateGateway(context.Context, *Gateway) (*Gateway, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateGateway not implemented")
}
func (UnimplementedPayrexxwrapperServer) GetGateway(context.Context, *GetGatewayRequest) (*Gateway, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetGateway not implemented")
}
func (UnimplementedPayrexxwrapperServer) BatchRefreshGateways(context.Context, *BatchRefreshGatewaysRequest) (*BatchRefreshGatewaysResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BatchRefreshGateways not implemented")
}
func (UnimplementedPayrexxwrapperServer) CheckLiveness(context.Context, *empty.Empty) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method CheckLiveness not implemented")
}
func (UnimplementedPayrexxwrapperServer) BatchUpdateGatewayFees(context.Context, *BatchUpdateGatewayFeesRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method BatchUpdateGatewayFees not implemented")
}
func (UnimplementedPayrexxwrapperServer) mustEmbedUnimplementedPayrexxwrapperServer() {}
// UnsafePayrexxwrapperServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to PayrexxwrapperServer will
// result in compilation errors.
type UnsafePayrexxwrapperServer interface {
mustEmbedUnimplementedPayrexxwrapperServer()
}
func RegisterPayrexxwrapperServer(s grpc.ServiceRegistrar, srv PayrexxwrapperServer) {
s.RegisterService(&Payrexxwrapper_ServiceDesc, srv)
}
func _Payrexxwrapper_CreateGateway_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Gateway)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PayrexxwrapperServer).CreateGateway(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/sip.payrexxwrapper.Payrexxwrapper/CreateGateway",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PayrexxwrapperServer).CreateGateway(ctx, req.(*Gateway))
}
return interceptor(ctx, in, info, handler)
}
func _Payrexxwrapper_GetGateway_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetGatewayRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PayrexxwrapperServer).GetGateway(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/sip.payrexxwrapper.Payrexxwrapper/GetGateway",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PayrexxwrapperServer).GetGateway(ctx, req.(*GetGatewayRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Payrexxwrapper_BatchRefreshGateways_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchRefreshGatewaysRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PayrexxwrapperServer).BatchRefreshGateways(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/sip.payrexxwrapper.Payrexxwrapper/BatchRefreshGateways",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PayrexxwrapperServer).BatchRefreshGateways(ctx, req.(*BatchRefreshGatewaysRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Payrexxwrapper_CheckLiveness_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PayrexxwrapperServer).CheckLiveness(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/sip.payrexxwrapper.Payrexxwrapper/CheckLiveness",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PayrexxwrapperServer).CheckLiveness(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _Payrexxwrapper_BatchUpdateGatewayFees_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BatchUpdateGatewayFeesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PayrexxwrapperServer).BatchUpdateGatewayFees(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/sip.payrexxwrapper.Payrexxwrapper/BatchUpdateGatewayFees",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PayrexxwrapperServer).BatchUpdateGatewayFees(ctx, req.(*BatchUpdateGatewayFeesRequest))
}
return interceptor(ctx, in, info, handler)
}
// Payrexxwrapper_ServiceDesc is the grpc.ServiceDesc for Payrexxwrapper service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Payrexxwrapper_ServiceDesc = grpc.ServiceDesc{
ServiceName: "sip.payrexxwrapper.Payrexxwrapper",
HandlerType: (*PayrexxwrapperServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateGateway",
Handler: _Payrexxwrapper_CreateGateway_Handler,
},
{
MethodName: "GetGateway",
Handler: _Payrexxwrapper_GetGateway_Handler,
},
{
MethodName: "BatchRefreshGateways",
Handler: _Payrexxwrapper_BatchRefreshGateways_Handler,
},
{
MethodName: "CheckLiveness",
Handler: _Payrexxwrapper_CheckLiveness_Handler,
},
{
MethodName: "BatchUpdateGatewayFees",
Handler: _Payrexxwrapper_BatchUpdateGatewayFees_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "sip/payrexxwrapper/payrexxwrapper.proto",
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment