api

package
v0.0.0-...-75a8c4b Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

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
}

Jump to

Keyboard shortcuts

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