sb_rotator

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_rotator_proto protoreflect.FileDescriptor

Functions

func NewRotatorEndpoints added in v0.6.0

func NewRotatorEndpoints() []*api.Endpoint

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) Descriptor() ([]byte, []int)

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() int32

func (*Error) GetDescription

func (x *Error) GetDescription() string

func (*Error) GetError

func (x *Error) GetError() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect added in v0.6.0

func (x *Error) ProtoReflect() protoreflect.Message

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetAzimuthMax

func (x *Metadata) GetAzimuthMax() int32

func (*Metadata) GetAzimuthMin

func (x *Metadata) GetAzimuthMin() int32

func (*Metadata) GetAzimuthStop

func (x *Metadata) GetAzimuthStop() int32

func (*Metadata) GetElevationMax

func (x *Metadata) GetElevationMax() int32

func (*Metadata) GetElevationMin

func (x *Metadata) GetElevationMin() int32

func (*Metadata) GetHasAzimuth

func (x *Metadata) GetHasAzimuth() bool

func (*Metadata) GetHasElevation

func (x *Metadata) GetHasElevation() bool

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect added in v0.6.0

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

type None

type None struct {
	// contains filtered or unexported fields
}

func (*None) Descriptor deprecated

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

Deprecated: Use None.ProtoReflect.Descriptor instead.

func (*None) ProtoMessage

func (*None) ProtoMessage()

func (*None) ProtoReflect added in v0.6.0

func (x *None) ProtoReflect() protoreflect.Message

func (*None) Reset

func (x *None) Reset()

func (*None) String

func (x *None) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use State.ProtoReflect.Descriptor instead.

func (*State) GetAzimuth

func (x *State) GetAzimuth() int32

func (*State) GetAzimuthPreset

func (x *State) GetAzimuthPreset() int32

func (*State) GetElevation

func (x *State) GetElevation() int32

func (*State) GetElevationPreset

func (x *State) GetElevationPreset() int32

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) ProtoReflect added in v0.6.0

func (x *State) ProtoReflect() protoreflect.Message

func (*State) Reset

func (x *State) Reset()

func (*State) String

func (x *State) String() string

Jump to

Keyboard shortcuts

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