laserLight

package
v0.0.0-...-f856108 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterLaserLightServiceServer

func RegisterLaserLightServiceServer(s *grpc.Server, srv LaserLightServiceServer)

Types

type LaserLightReply

type LaserLightReply struct {
	ErrorMessage         string   `protobuf:"bytes,1,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The response message containing the dataArray, and the errorMesage if any.

func (*LaserLightReply) Descriptor

func (*LaserLightReply) Descriptor() ([]byte, []int)

func (*LaserLightReply) GetErrorMessage

func (m *LaserLightReply) GetErrorMessage() string

func (*LaserLightReply) ProtoMessage

func (*LaserLightReply) ProtoMessage()

func (*LaserLightReply) Reset

func (m *LaserLightReply) Reset()

func (*LaserLightReply) String

func (m *LaserLightReply) String() string

func (*LaserLightReply) XXX_DiscardUnknown

func (m *LaserLightReply) XXX_DiscardUnknown()

func (*LaserLightReply) XXX_Marshal

func (m *LaserLightReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LaserLightReply) XXX_Merge

func (m *LaserLightReply) XXX_Merge(src proto.Message)

func (*LaserLightReply) XXX_Size

func (m *LaserLightReply) XXX_Size() int

func (*LaserLightReply) XXX_Unmarshal

func (m *LaserLightReply) XXX_Unmarshal(b []byte) error

type LaserLightRequest

type LaserLightRequest struct {
	TurnOn               bool     `protobuf:"varint,1,opt,name=TurnOn,proto3" json:"TurnOn,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Use true to Turn on the laser light, otherwise false.

func (*LaserLightRequest) Descriptor

func (*LaserLightRequest) Descriptor() ([]byte, []int)

func (*LaserLightRequest) GetTurnOn

func (m *LaserLightRequest) GetTurnOn() bool

func (*LaserLightRequest) ProtoMessage

func (*LaserLightRequest) ProtoMessage()

func (*LaserLightRequest) Reset

func (m *LaserLightRequest) Reset()

func (*LaserLightRequest) String

func (m *LaserLightRequest) String() string

func (*LaserLightRequest) XXX_DiscardUnknown

func (m *LaserLightRequest) XXX_DiscardUnknown()

func (*LaserLightRequest) XXX_Marshal

func (m *LaserLightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LaserLightRequest) XXX_Merge

func (m *LaserLightRequest) XXX_Merge(src proto.Message)

func (*LaserLightRequest) XXX_Size

func (m *LaserLightRequest) XXX_Size() int

func (*LaserLightRequest) XXX_Unmarshal

func (m *LaserLightRequest) XXX_Unmarshal(b []byte) error

type LaserLightServiceClient

type LaserLightServiceClient interface {
	// switch the laser light
	SwitchLaserLight(ctx context.Context, in *LaserLightRequest, opts ...grpc.CallOption) (*LaserLightReply, error)
}

LaserLightServiceClient is the client API for LaserLightService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewLaserLightServiceClient

func NewLaserLightServiceClient(cc *grpc.ClientConn) LaserLightServiceClient

type LaserLightServiceServer

type LaserLightServiceServer interface {
	// switch the laser light
	SwitchLaserLight(context.Context, *LaserLightRequest) (*LaserLightReply, error)
}

LaserLightServiceServer is the server API for LaserLightService service.

type UnimplementedLaserLightServiceServer

type UnimplementedLaserLightServiceServer struct {
}

UnimplementedLaserLightServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedLaserLightServiceServer) SwitchLaserLight

Jump to

Keyboard shortcuts

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