Documentation ¶
Index ¶
- Variables
- func RegisterRioServer(s grpc.ServiceRegistrar, srv RioServer)
- type ClientRequest
- type GPIOselected
- func (*GPIOselected) Descriptor() ([]byte, []int)deprecated
- func (x *GPIOselected) GetGPIOChip() string
- func (x *GPIOselected) GetGPIOLineAlias() string
- func (x *GPIOselected) GetGPIOLineOffset() int32
- func (x *GPIOselected) GetGPIOLineValue() int32
- func (x *GPIOselected) GetGPIOOutput() bool
- func (*GPIOselected) ProtoMessage()
- func (x *GPIOselected) ProtoReflect() protoreflect.Message
- func (x *GPIOselected) Reset()
- func (x *GPIOselected) String() string
- type RioClient
- type RioServer
- type Rio_GetGPIOListClient
- type Rio_GetGPIOListServer
- type ServerResponse
- type UnimplementedRioServer
- type UnsafeRioServer
Constants ¶
This section is empty.
Variables ¶
var File_rio_proto protoreflect.FileDescriptor
var Rio_ServiceDesc = grpc.ServiceDesc{ ServiceName: "riogrpc.Rio", HandlerType: (*RioServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SetGPIObyOffset", Handler: _Rio_SetGPIObyOffset_Handler, }, { MethodName: "SetGPIObyAlias", Handler: _Rio_SetGPIObyAlias_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetGPIOList", Handler: _Rio_GetGPIOList_Handler, ServerStreams: true, }, }, Metadata: "rio.proto", }
Rio_ServiceDesc is the grpc.ServiceDesc for Rio service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRioServer ¶
func RegisterRioServer(s grpc.ServiceRegistrar, srv RioServer)
Types ¶
type ClientRequest ¶
type ClientRequest struct { RequestString string `protobuf:"bytes,1,opt,name=RequestString,proto3" json:"RequestString,omitempty"` // contains filtered or unexported fields }
func (*ClientRequest) Descriptor
deprecated
func (*ClientRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClientRequest.ProtoReflect.Descriptor instead.
func (*ClientRequest) GetRequestString ¶
func (x *ClientRequest) GetRequestString() string
func (*ClientRequest) ProtoMessage ¶
func (*ClientRequest) ProtoMessage()
func (*ClientRequest) ProtoReflect ¶
func (x *ClientRequest) ProtoReflect() protoreflect.Message
func (*ClientRequest) Reset ¶
func (x *ClientRequest) Reset()
func (*ClientRequest) String ¶
func (x *ClientRequest) String() string
type GPIOselected ¶
type GPIOselected struct { GPIOLineOffset int32 `protobuf:"varint,1,opt,name=GPIOLineOffset,proto3" json:"GPIOLineOffset,omitempty"` GPIOLineValue int32 `protobuf:"varint,2,opt,name=GPIOLineValue,proto3" json:"GPIOLineValue,omitempty"` GPIOLineAlias string `protobuf:"bytes,3,opt,name=GPIOLineAlias,proto3" json:"GPIOLineAlias,omitempty"` GPIOOutput bool `protobuf:"varint,4,opt,name=GPIOOutput,proto3" json:"GPIOOutput,omitempty"` GPIOChip string `protobuf:"bytes,5,opt,name=GPIOChip,proto3" json:"GPIOChip,omitempty"` // contains filtered or unexported fields }
func (*GPIOselected) Descriptor
deprecated
func (*GPIOselected) Descriptor() ([]byte, []int)
Deprecated: Use GPIOselected.ProtoReflect.Descriptor instead.
func (*GPIOselected) GetGPIOChip ¶
func (x *GPIOselected) GetGPIOChip() string
func (*GPIOselected) GetGPIOLineAlias ¶
func (x *GPIOselected) GetGPIOLineAlias() string
func (*GPIOselected) GetGPIOLineOffset ¶
func (x *GPIOselected) GetGPIOLineOffset() int32
func (*GPIOselected) GetGPIOLineValue ¶
func (x *GPIOselected) GetGPIOLineValue() int32
func (*GPIOselected) GetGPIOOutput ¶
func (x *GPIOselected) GetGPIOOutput() bool
func (*GPIOselected) ProtoMessage ¶
func (*GPIOselected) ProtoMessage()
func (*GPIOselected) ProtoReflect ¶
func (x *GPIOselected) ProtoReflect() protoreflect.Message
func (*GPIOselected) Reset ¶
func (x *GPIOselected) Reset()
func (*GPIOselected) String ¶
func (x *GPIOselected) String() string
type RioClient ¶
type RioClient interface { SetGPIObyOffset(ctx context.Context, in *GPIOselected, opts ...grpc.CallOption) (*ServerResponse, error) SetGPIObyAlias(ctx context.Context, in *GPIOselected, opts ...grpc.CallOption) (*ServerResponse, error) GetGPIOList(ctx context.Context, in *ClientRequest, opts ...grpc.CallOption) (Rio_GetGPIOListClient, error) }
RioClient is the client API for Rio service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRioClient ¶
func NewRioClient(cc grpc.ClientConnInterface) RioClient
type RioServer ¶
type RioServer interface { SetGPIObyOffset(context.Context, *GPIOselected) (*ServerResponse, error) SetGPIObyAlias(context.Context, *GPIOselected) (*ServerResponse, error) GetGPIOList(*ClientRequest, Rio_GetGPIOListServer) error // contains filtered or unexported methods }
RioServer is the server API for Rio service. All implementations must embed UnimplementedRioServer for forward compatibility
type Rio_GetGPIOListClient ¶
type Rio_GetGPIOListClient interface { Recv() (*GPIOselected, error) grpc.ClientStream }
type Rio_GetGPIOListServer ¶
type Rio_GetGPIOListServer interface { Send(*GPIOselected) error grpc.ServerStream }
type ServerResponse ¶
type ServerResponse struct { ResponseString string `protobuf:"bytes,1,opt,name=ResponseString,proto3" json:"ResponseString,omitempty"` // contains filtered or unexported fields }
func (*ServerResponse) Descriptor
deprecated
func (*ServerResponse) Descriptor() ([]byte, []int)
Deprecated: Use ServerResponse.ProtoReflect.Descriptor instead.
func (*ServerResponse) GetResponseString ¶
func (x *ServerResponse) GetResponseString() string
func (*ServerResponse) ProtoMessage ¶
func (*ServerResponse) ProtoMessage()
func (*ServerResponse) ProtoReflect ¶
func (x *ServerResponse) ProtoReflect() protoreflect.Message
func (*ServerResponse) Reset ¶
func (x *ServerResponse) Reset()
func (*ServerResponse) String ¶
func (x *ServerResponse) String() string
type UnimplementedRioServer ¶
type UnimplementedRioServer struct { }
UnimplementedRioServer must be embedded to have forward compatible implementations.
func (UnimplementedRioServer) GetGPIOList ¶
func (UnimplementedRioServer) GetGPIOList(*ClientRequest, Rio_GetGPIOListServer) error
func (UnimplementedRioServer) SetGPIObyAlias ¶
func (UnimplementedRioServer) SetGPIObyAlias(context.Context, *GPIOselected) (*ServerResponse, error)
func (UnimplementedRioServer) SetGPIObyOffset ¶
func (UnimplementedRioServer) SetGPIObyOffset(context.Context, *GPIOselected) (*ServerResponse, error)
type UnsafeRioServer ¶
type UnsafeRioServer interface {
// contains filtered or unexported methods
}
UnsafeRioServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RioServer will result in compilation errors.