clients

package
v0.0.0-...-173ef52 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAwsSession

func GetAwsSession(region string) *session.Session

Types

type NWSApiResponse

type NWSApiResponse struct {
	Graph []NWSProduct `json:"@graph"`
}

type NWSProduct

type NWSProduct struct {
	Id              string    `json:"id"`
	URL             string    `json:"@id"`
	WmoCollectiveID string    `json:"wmoCollectiveId"`
	IssuingOffice   string    `json:"issuingOffice"`
	IssuanceTime    time.Time `json:"issuanceTime"`
	ProductCode     string    `json:"productCode"`
	ProductName     string    `json:"productName"`
	ProductText     string    `json:"productText"`
}

type NationalWeatherServiceClient

type NationalWeatherServiceClient struct {
}

func NewNationalWeatherServiceClient

func NewNationalWeatherServiceClient() (*NationalWeatherServiceClient, error)

func (*NationalWeatherServiceClient) GetProductData

func (s *NationalWeatherServiceClient) GetProductData(url string) ([]NWSProduct, error)

func (*NationalWeatherServiceClient) GetProductItem

func (s *NationalWeatherServiceClient) GetProductItem(url string) (NWSProduct, error)

Jump to

Keyboard shortcuts

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