Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSerialServer ¶
func RegisterSerialServer(s *grpc.Server, srv SerialServer)
Types ¶
type SerialClient ¶
type SerialClient interface { // Sends and receives data from the serial port Open(ctx context.Context, opts ...grpc.CallOption) (Serial_OpenClient, error) }
SerialClient is the client API for Serial service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSerialClient ¶
func NewSerialClient(cc *grpc.ClientConn) SerialClient
type SerialServer ¶
type SerialServer interface { // Sends and receives data from the serial port Open(Serial_OpenServer) error }
SerialServer is the server API for Serial service.
type Serial_OpenClient ¶
type Serial_OpenClient interface { Send(*wrappers.BytesValue) error Recv() (*wrappers.BytesValue, error) grpc.ClientStream }
type Serial_OpenServer ¶
type Serial_OpenServer interface { Send(*wrappers.BytesValue) error Recv() (*wrappers.BytesValue, error) grpc.ServerStream }
Click to show internal directories.
Click to hide internal directories.