Documentation ¶
Index ¶
- Variables
- func NewRotatorEndpoints() []*api.Endpoint
- func RegisterRotatorHandler(s server.Server, hdlr RotatorHandler, opts ...server.HandlerOption) error
- type Error
- type HeadingReq
- type HeadingResp
- func (*HeadingResp) Descriptor() ([]byte, []int)deprecated
- func (x *HeadingResp) GetHeading() int32
- func (x *HeadingResp) GetPreset() int32
- func (*HeadingResp) ProtoMessage()
- func (x *HeadingResp) ProtoReflect() protoreflect.Message
- func (x *HeadingResp) Reset()
- func (x *HeadingResp) String() string
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetAzimuthMax() int32
- func (x *Metadata) GetAzimuthMin() int32
- func (x *Metadata) GetAzimuthStop() int32
- func (x *Metadata) GetElevationMax() int32
- func (x *Metadata) GetElevationMin() int32
- func (x *Metadata) GetHasAzimuth() bool
- func (x *Metadata) GetHasElevation() bool
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- type None
- type RotatorHandler
- type RotatorService
- type State
- func (*State) Descriptor() ([]byte, []int)deprecated
- func (x *State) GetAzimuth() int32
- func (x *State) GetAzimuthPreset() int32
- func (x *State) GetElevation() int32
- func (x *State) GetElevationPreset() int32
- func (*State) ProtoMessage()
- func (x *State) ProtoReflect() protoreflect.Message
- func (x *State) Reset()
- func (x *State) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_rotator_proto protoreflect.FileDescriptor
Functions ¶
func NewRotatorEndpoints ¶ added in v0.6.0
func RegisterRotatorHandler ¶
func RegisterRotatorHandler(s server.Server, hdlr RotatorHandler, opts ...server.HandlerOption) error
Types ¶
type Error ¶
type Error struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) GetDescription ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶ added in v0.6.0
func (x *Error) ProtoReflect() protoreflect.Message
type HeadingReq ¶
type HeadingReq struct { Heading int32 `protobuf:"varint,1,opt,name=heading,proto3" json:"heading,omitempty"` // contains filtered or unexported fields }
func (*HeadingReq) Descriptor
deprecated
func (*HeadingReq) Descriptor() ([]byte, []int)
Deprecated: Use HeadingReq.ProtoReflect.Descriptor instead.
func (*HeadingReq) GetHeading ¶
func (x *HeadingReq) GetHeading() int32
func (*HeadingReq) ProtoMessage ¶
func (*HeadingReq) ProtoMessage()
func (*HeadingReq) ProtoReflect ¶ added in v0.6.0
func (x *HeadingReq) ProtoReflect() protoreflect.Message
func (*HeadingReq) Reset ¶
func (x *HeadingReq) Reset()
func (*HeadingReq) String ¶
func (x *HeadingReq) String() string
type HeadingResp ¶
type HeadingResp struct { Heading int32 `protobuf:"varint,1,opt,name=heading,proto3" json:"heading,omitempty"` Preset int32 `protobuf:"varint,2,opt,name=preset,proto3" json:"preset,omitempty"` // contains filtered or unexported fields }
func (*HeadingResp) Descriptor
deprecated
func (*HeadingResp) Descriptor() ([]byte, []int)
Deprecated: Use HeadingResp.ProtoReflect.Descriptor instead.
func (*HeadingResp) GetHeading ¶
func (x *HeadingResp) GetHeading() int32
func (*HeadingResp) GetPreset ¶
func (x *HeadingResp) GetPreset() int32
func (*HeadingResp) ProtoMessage ¶
func (*HeadingResp) ProtoMessage()
func (*HeadingResp) ProtoReflect ¶ added in v0.6.0
func (x *HeadingResp) ProtoReflect() protoreflect.Message
func (*HeadingResp) Reset ¶
func (x *HeadingResp) Reset()
func (*HeadingResp) String ¶
func (x *HeadingResp) String() string
type Metadata ¶
type Metadata struct { AzimuthStop int32 `protobuf:"varint,1,opt,name=azimuth_stop,json=azimuthStop,proto3" json:"azimuth_stop,omitempty"` AzimuthMin int32 `protobuf:"varint,2,opt,name=azimuth_min,json=azimuthMin,proto3" json:"azimuth_min,omitempty"` AzimuthMax int32 `protobuf:"varint,3,opt,name=azimuth_max,json=azimuthMax,proto3" json:"azimuth_max,omitempty"` ElevationMin int32 `protobuf:"varint,4,opt,name=elevation_min,json=elevationMin,proto3" json:"elevation_min,omitempty"` ElevationMax int32 `protobuf:"varint,5,opt,name=elevation_max,json=elevationMax,proto3" json:"elevation_max,omitempty"` HasAzimuth bool `protobuf:"varint,6,opt,name=has_azimuth,json=hasAzimuth,proto3" json:"has_azimuth,omitempty"` HasElevation bool `protobuf:"varint,7,opt,name=has_elevation,json=hasElevation,proto3" json:"has_elevation,omitempty"` // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetAzimuthMax ¶
func (*Metadata) GetAzimuthMin ¶
func (*Metadata) GetAzimuthStop ¶
func (*Metadata) GetElevationMax ¶
func (*Metadata) GetElevationMin ¶
func (*Metadata) GetHasAzimuth ¶
func (*Metadata) GetHasElevation ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶ added in v0.6.0
func (x *Metadata) ProtoReflect() protoreflect.Message
type None ¶
type None struct {
// contains filtered or unexported fields
}
func (*None) Descriptor
deprecated
func (*None) ProtoMessage ¶
func (*None) ProtoMessage()
func (*None) ProtoReflect ¶ added in v0.6.0
func (x *None) ProtoReflect() protoreflect.Message
type RotatorHandler ¶
type RotatorHandler interface { SetAzimuth(context.Context, *HeadingReq, *None) error SetElevation(context.Context, *HeadingReq, *None) error StopAzimuth(context.Context, *None, *None) error StopElevation(context.Context, *None, *None) error GetMetadata(context.Context, *None, *Metadata) error GetState(context.Context, *None, *State) error }
type RotatorService ¶ added in v0.6.0
type RotatorService interface { SetAzimuth(ctx context.Context, in *HeadingReq, opts ...client.CallOption) (*None, error) SetElevation(ctx context.Context, in *HeadingReq, opts ...client.CallOption) (*None, error) StopAzimuth(ctx context.Context, in *None, opts ...client.CallOption) (*None, error) StopElevation(ctx context.Context, in *None, opts ...client.CallOption) (*None, error) GetMetadata(ctx context.Context, in *None, opts ...client.CallOption) (*Metadata, error) GetState(ctx context.Context, in *None, opts ...client.CallOption) (*State, error) }
func NewRotatorService ¶ added in v0.6.0
func NewRotatorService(name string, c client.Client) RotatorService
type State ¶
type State struct { Azimuth int32 `protobuf:"varint,1,opt,name=azimuth,proto3" json:"azimuth,omitempty"` AzimuthPreset int32 `protobuf:"varint,2,opt,name=azimuth_preset,json=azimuthPreset,proto3" json:"azimuth_preset,omitempty"` Elevation int32 `protobuf:"varint,3,opt,name=elevation,proto3" json:"elevation,omitempty"` ElevationPreset int32 `protobuf:"varint,4,opt,name=elevation_preset,json=elevationPreset,proto3" json:"elevation_preset,omitempty"` // contains filtered or unexported fields }
func (*State) Descriptor
deprecated
func (*State) GetAzimuth ¶
func (*State) GetAzimuthPreset ¶
func (*State) GetElevation ¶
func (*State) GetElevationPreset ¶
func (*State) ProtoMessage ¶
func (*State) ProtoMessage()
func (*State) ProtoReflect ¶ added in v0.6.0
func (x *State) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.