moon

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

README

MOON Plugin

Documentation

Documentation

Index

Constants

View Source
const (
	// Name ...
	Name = "moon"
	// EntityMoon ...
	EntityMoon = string("moon")

	Version = "0.0.1"
)
View Source
const (
	// StateAboveHorizon ...
	StateAboveHorizon = "aboveHorizon"
	// StateBelowHorizon ...
	StateBelowHorizon = "belowHorizon"
)
View Source
const (
	// StateNewMoon ...
	StateNewMoon = "new_moon"
	// StateWaxingCrescent ...
	StateWaxingCrescent = "waxing_crescent"
	// StateFirstQuarter ...
	StateFirstQuarter = "first_quarter"
	// StateWaxingGibbous ...
	StateWaxingGibbous = "waxing_gibbous"
	// StateFullMoon ...
	StateFullMoon = "full_moon"
	// StateWaningGibbous ...
	StateWaningGibbous = "waning_gibbous"
	// StateThirdQuarter ...
	StateThirdQuarter = "third_quarter"
	// StateWaningCrescent ...
	StateWaningCrescent = "waning_crescent"
)
View Source
const (
	// AttrHorizonState ...
	AttrHorizonState = "horizonState"
	// AttrPhase ...
	AttrPhase = "phase"
	// AttrAzimuth ...
	AttrAzimuth = "azimuth"
	// AttrElevation ...
	AttrElevation = "elevation"
	// AttrLat ...
	AttrLat = "lat"
	// AttrLon ...
	AttrLon = "lon"
)

Variables

Functions

func New

func New() supervisor.Pluggable

New ...

func NewAttr

func NewAttr() m.Attributes

NewAttr ...

func NewSettings

func NewSettings() m.Attributes

NewSettings ...

func NewStates

func NewStates() (states map[string]supervisor.ActorState)

NewStates ...

Types

type Actor

type Actor struct {
	*supervisor.BaseActor
	// contains filtered or unexported fields
}

Actor ...

func NewActor

func NewActor(entity *m.Entity,
	service supervisor.Service) *Actor

NewActor ...

func (*Actor) Destroy added in v0.12.0

func (a *Actor) Destroy()

func (*Actor) Spawn

func (e *Actor) Spawn()

func (*Actor) UpdateMoonPosition

func (e *Actor) UpdateMoonPosition(now time.Time)

UpdateMoonPosition ...

Jump to

Keyboard shortcuts

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