service

package
v0.0.0-...-f01cfc5 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUService

type CPUService interface {
	GetCPUStats() (int, []float64, error)
}

func NewCPUService

func NewCPUService() CPUService

type MemoryService

type MemoryService interface {
	GetMemoryStats() (uint64, uint64, uint64, uint64, float64, error)
}

func NewMemoryService

func NewMemoryService() MemoryService

type UptimeService

type UptimeService interface {
	GetUptime() string
}

func NewUptimeService

func NewUptimeService() UptimeService

type WeatherService

type WeatherService struct {
	HttpClient contract.HttpClient
	BaseURL    string
}

func NewWeatherService

func NewWeatherService(client *http.Client, baseURL string) *WeatherService

func (*WeatherService) GetWeather

func (s *WeatherService) GetWeather(ctx context.Context, cep string) (domain.WeatherResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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