services

package
v0.0.0-...-27647ab Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status struct {
	Pid    int
	Uptime time.Duration
}

type StatusService

type StatusService struct {
	// contains filtered or unexported fields
}

func NewStatusService

func NewStatusService(
	ut *UptimeService,
) *StatusService

func (*StatusService) Status

func (svc *StatusService) Status() Status

type UptimeService

type UptimeService struct {
	// contains filtered or unexported fields
}

func NewUptimeService

func NewUptimeService() *UptimeService

func (UptimeService) Uptime

func (svc UptimeService) Uptime() time.Duration

Jump to

Keyboard shortcuts

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