util

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 4

README

Aerokube Util Repository

Build Status

This repository contains source code used in multiple projects.

Documentation

Index

Constants

View Source
const UnknownUser = "unknown"

Variables

This section is empty.

Functions

func HostPort

func HostPort(input string) string

func JsonError

func JsonError(w http.ResponseWriter, msg string, code int)

func RequestInfo

func RequestInfo(r *http.Request) (string, string)

func SecondsSince

func SecondsSince(start time.Time) float64

Types

type Counter

type Counter interface {
	Count() uint64
	Get() uint64
}

func NewCounter

func NewCounter() Counter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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