awsutil

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: MIT Imports: 8 Imported by: 12

Documentation

Overview

Package awsutil provides utility functions for using Sonyflake on AWS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AmazonEC2MachineID

func AmazonEC2MachineID() (uint16, error)

AmazonEC2MachineID retrieves the private IP address of the Amazon EC2 instance and returns its lower 16 bits. It works correctly on Docker as well.

func TimeDifference

func TimeDifference(server string) (time.Duration, error)

TimeDifference returns the time difference between the localhost and the given NTP server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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