Documentation
¶
Index ¶
- func NewGRPCServer(d driver.Device) *grpc.Server
- type GRPCServer
- func (s *GRPCServer) GetInstantWeight(ctx context.Context, _ *pb.Empty) (*pb.ResponseInstantWeight, error)
- func (s *GRPCServer) GetState(ctx context.Context, _ *pb.Empty) (*pb.ResponseScale, error)
- func (s *GRPCServer) ScalesMessageOutChannel(stream pb.ApiCallerScale_ScalesMessageOutChannelServer) error
- func (s *GRPCServer) SetTare(ctx context.Context, _ *pb.Empty) (*pb.ResponseSetScale, error)
- func (s *GRPCServer) SetTareValue(ctx context.Context, tVal *pb.RequestTareValue) (*pb.ResponseSetScale, error)
- func (s *GRPCServer) SetZero(ctx context.Context, _ *pb.Empty) (*pb.ResponseSetScale, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GRPCServer ¶
type GRPCServer struct {
pb.ApiCallerScaleServer
Device driver.Device
}
func (*GRPCServer) GetInstantWeight ¶
func (s *GRPCServer) GetInstantWeight(ctx context.Context, _ *pb.Empty) (*pb.ResponseInstantWeight, error)
func (*GRPCServer) GetState ¶
func (s *GRPCServer) GetState(ctx context.Context, _ *pb.Empty) (*pb.ResponseScale, error)
func (*GRPCServer) ScalesMessageOutChannel ¶
func (s *GRPCServer) ScalesMessageOutChannel(stream pb.ApiCallerScale_ScalesMessageOutChannelServer) error
func (*GRPCServer) SetTare ¶
func (s *GRPCServer) SetTare(ctx context.Context, _ *pb.Empty) (*pb.ResponseSetScale, error)
func (*GRPCServer) SetTareValue ¶
func (s *GRPCServer) SetTareValue(ctx context.Context, tVal *pb.RequestTareValue) (*pb.ResponseSetScale, error)
func (*GRPCServer) SetZero ¶
func (s *GRPCServer) SetZero(ctx context.Context, _ *pb.Empty) (*pb.ResponseSetScale, error)
Click to show internal directories.
Click to hide internal directories.