time

package
v0.0.0-...-fc6e1cf Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package time implements a supervisor runnable which is responsible for keeping both the system clock and the RTC accurate. Metropolis nodes need accurate time both for themselves (for log timestamping, validating certain certificates, ...) as well as workloads running on top of it expecting accurate time. This initial implementation is very minimalistic, running just a stateless NTP client per node for the whole lifecycle of it. This implementation is simple, but is fairly unsafe as NTP by itself does not offer any cryptography, so it's easy to tamper with the responses. See #73 for further work in that direction.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct{}

Service implements the time service. See package documentation for further information.

func New

func New() *Service

func (*Service) Run

func (s *Service) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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