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 b8a08d4f authored by Andrea Raguso's avatar Andrea Raguso
Browse files

update

parent 54976e00
......@@ -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-20211007155348-82e027067bd4
google.golang.org/genproto v0.0.0-20211013025323-ce878158c4d4
google.golang.org/grpc v1.41.0
google.golang.org/protobuf v1.27.1
)
......@@ -109,8 +109,8 @@ 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-20211007155348-82e027067bd4 h1:YXPV/eKW0ZWRdB5tyI6aPoaa2Wxb4OSlFrTREMdwn64=
google.golang.org/genproto v0.0.0-20211007155348-82e027067bd4/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
google.golang.org/genproto v0.0.0-20211013025323-ce878158c4d4 h1:NBxB1XxiWpGqkPUiJ9PoBXkHV5A9+GohMOA+EmWoPbU=
google.golang.org/genproto v0.0.0-20211013025323-ce878158c4d4/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
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=
......
This diff is collapsed.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
package coffeelog
import (
context "context"
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
// CoffeelogClient is the client API for Coffeelog 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 CoffeelogClient interface {
// LogDispense adds new dispense for specified user
LogDispense(ctx context.Context, in *LogDispenseRequest, opts ...grpc.CallOption) (*LogDispenseResponse, error)
// ListDispenses lists recent dispenses
ListDispenses(ctx context.Context, in *ListDispensesRequest, opts ...grpc.CallOption) (*ListDispensesResponse, error)
// GetDispense shows details about a specific dispense
GetDispense(ctx context.Context, in *GetDispenseRequest, opts ...grpc.CallOption) (*GetDispenseResponse, error)
// GetFVStats shows how much coffee each FV consumed in the given timeframe
GetFVStats(ctx context.Context, in *GetFVStatsRequest, opts ...grpc.CallOption) (*GetFVStatsResponse, error)
}
type coffeelogClient struct {
cc grpc.ClientConnInterface
}
func NewCoffeelogClient(cc grpc.ClientConnInterface) CoffeelogClient {
return &coffeelogClient{cc}
}
func (c *coffeelogClient) LogDispense(ctx context.Context, in *LogDispenseRequest, opts ...grpc.CallOption) (*LogDispenseResponse, error) {
out := new(LogDispenseResponse)
err := c.cc.Invoke(ctx, "/vseth.vis.coffeelog.Coffeelog/LogDispense", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *coffeelogClient) ListDispenses(ctx context.Context, in *ListDispensesRequest, opts ...grpc.CallOption) (*ListDispensesResponse, error) {
out := new(ListDispensesResponse)
err := c.cc.Invoke(ctx, "/vseth.vis.coffeelog.Coffeelog/ListDispenses", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *coffeelogClient) GetDispense(ctx context.Context, in *GetDispenseRequest, opts ...grpc.CallOption) (*GetDispenseResponse, error) {
out := new(GetDispenseResponse)
err := c.cc.Invoke(ctx, "/vseth.vis.coffeelog.Coffeelog/GetDispense", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *coffeelogClient) GetFVStats(ctx context.Context, in *GetFVStatsRequest, opts ...grpc.CallOption) (*GetFVStatsResponse, error) {
out := new(GetFVStatsResponse)
err := c.cc.Invoke(ctx, "/vseth.vis.coffeelog.Coffeelog/GetFVStats", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// CoffeelogServer is the server API for Coffeelog service.
// All implementations must embed UnimplementedCoffeelogServer
// for forward compatibility
type CoffeelogServer interface {
// LogDispense adds new dispense for specified user
LogDispense(context.Context, *LogDispenseRequest) (*LogDispenseResponse, error)
// ListDispenses lists recent dispenses
ListDispenses(context.Context, *ListDispensesRequest) (*ListDispensesResponse, error)
// GetDispense shows details about a specific dispense
GetDispense(context.Context, *GetDispenseRequest) (*GetDispenseResponse, error)
// GetFVStats shows how much coffee each FV consumed in the given timeframe
GetFVStats(context.Context, *GetFVStatsRequest) (*GetFVStatsResponse, error)
mustEmbedUnimplementedCoffeelogServer()
}
// UnimplementedCoffeelogServer must be embedded to have forward compatible implementations.
type UnimplementedCoffeelogServer struct {
}
func (UnimplementedCoffeelogServer) LogDispense(context.Context, *LogDispenseRequest) (*LogDispenseResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method LogDispense not implemented")
}
func (UnimplementedCoffeelogServer) ListDispenses(context.Context, *ListDispensesRequest) (*ListDispensesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListDispenses not implemented")
}
func (UnimplementedCoffeelogServer) GetDispense(context.Context, *GetDispenseRequest) (*GetDispenseResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetDispense not implemented")
}
func (UnimplementedCoffeelogServer) GetFVStats(context.Context, *GetFVStatsRequest) (*GetFVStatsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetFVStats not implemented")
}
func (UnimplementedCoffeelogServer) mustEmbedUnimplementedCoffeelogServer() {}
// UnsafeCoffeelogServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to CoffeelogServer will
// result in compilation errors.
type UnsafeCoffeelogServer interface {
mustEmbedUnimplementedCoffeelogServer()
}
func RegisterCoffeelogServer(s grpc.ServiceRegistrar, srv CoffeelogServer) {
s.RegisterService(&Coffeelog_ServiceDesc, srv)
}
func _Coffeelog_LogDispense_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LogDispenseRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CoffeelogServer).LogDispense(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/vseth.vis.coffeelog.Coffeelog/LogDispense",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CoffeelogServer).LogDispense(ctx, req.(*LogDispenseRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Coffeelog_ListDispenses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListDispensesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CoffeelogServer).ListDispenses(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/vseth.vis.coffeelog.Coffeelog/ListDispenses",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CoffeelogServer).ListDispenses(ctx, req.(*ListDispensesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Coffeelog_GetDispense_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetDispenseRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CoffeelogServer).GetDispense(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/vseth.vis.coffeelog.Coffeelog/GetDispense",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CoffeelogServer).GetDispense(ctx, req.(*GetDispenseRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Coffeelog_GetFVStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetFVStatsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CoffeelogServer).GetFVStats(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/vseth.vis.coffeelog.Coffeelog/GetFVStats",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CoffeelogServer).GetFVStats(ctx, req.(*GetFVStatsRequest))
}
return interceptor(ctx, in, info, handler)
}
// Coffeelog_ServiceDesc is the grpc.ServiceDesc for Coffeelog service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Coffeelog_ServiceDesc = grpc.ServiceDesc{
ServiceName: "vseth.vis.coffeelog.Coffeelog",
HandlerType: (*CoffeelogServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "LogDispense",
Handler: _Coffeelog_LogDispense_Handler,
},
{
MethodName: "ListDispenses",
Handler: _Coffeelog_ListDispenses_Handler,
},
{
MethodName: "GetDispense",
Handler: _Coffeelog_GetDispense_Handler,
},
{
MethodName: "GetFVStats",
Handler: _Coffeelog_GetFVStats_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "vseth/vis/coffeelog/coffeelog.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