sbProxy

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: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(cli client.Client) func(*SbProxy)

func DoneCh

func DoneCh(ch chan struct{}) func(*SbProxy)

DoneCh is a functional option allows you to pass a channel to the proxy object. This channel will be closed by this object. It serves as a notification that the object can be deleted.

func EventHandler

func EventHandler(h func(rotator.Rotator, rotator.Heading)) func(*SbProxy)

EventHandler sets a callback function through which the proxy rotator will report Events

func Name

func Name(name string) func(*SbProxy)

func ServiceName

func ServiceName(name string) func(*SbProxy)

Types

type SbProxy

type SbProxy struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New(opts ...func(*SbProxy)) (*SbProxy, error)

New returns the pointer to an initialized Rotator proxy object.

func (*SbProxy) AzPreset

func (r *SbProxy) AzPreset() int

func (*SbProxy) Azimuth

func (r *SbProxy) Azimuth() int

func (*SbProxy) Close

func (r *SbProxy) Close()

func (*SbProxy) ElPreset

func (r *SbProxy) ElPreset() int

func (*SbProxy) Elevation

func (r *SbProxy) Elevation() int

func (*SbProxy) HasAzimuth

func (r *SbProxy) HasAzimuth() bool

func (*SbProxy) HasElevation

func (r *SbProxy) HasElevation() bool

func (*SbProxy) Name

func (r *SbProxy) Name() string

func (*SbProxy) Serialize

func (r *SbProxy) Serialize() rotator.Object

Serialize the data of the rotator

func (*SbProxy) SetAzimuth

func (r *SbProxy) SetAzimuth(az int) error

func (*SbProxy) SetElevation

func (r *SbProxy) SetElevation(el int) error

func (*SbProxy) Stop

func (r *SbProxy) Stop() error

func (*SbProxy) StopAzimuth

func (r *SbProxy) StopAzimuth() error

func (*SbProxy) StopElevation

func (r *SbProxy) StopElevation() error

Jump to

Keyboard shortcuts

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