moonphase

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 13 Imported by: 0

README

k6-moonphase

An extension for k6 that provides current moon phase to your test scripts.

This project has been created in educational purposes and you should not use it in production.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AstronomyForecast

type AstronomyForecast struct {
	Moon struct {
		CurrentPhase MoonPhase `json:"current"`
	} `json:"moonPhase"`
	Time time.Time `json:"time"`
}

type Client

type Client struct {
	BaseURL string
	APIKey  string
	// contains filtered or unexported fields
}

func New

func New(baseURL, apiKey string) *Client

func (*Client) Current

func (m *Client) Current(lat, lng float64) MoonPhase

type MoonPhase

type MoonPhase struct {
	Name  string    `json:"text"`
	Time  time.Time `json:"time"`
	Value float64   `json:"value"`
}

Jump to

Keyboard shortcuts

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