server

package
v0.0.0-...-8bc70f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCServer

func NewGRPCServer(d driver.Device) *grpc.Server

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL