utils

package
v0.0.0-...-388d6c9 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package utils provides some common utils.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv() string

GetEnv get env environment variables.

func GetHealthEndpointPath

func GetHealthEndpointPath(prefix string) string

GetHealthEndpointPath get health check http endpoint path.

func GetOutBoundIP

func GetOutBoundIP() string

GetOutBoundIP get preferred outbound ip of this machine.

func GetRand

func GetRand(min, max int) int

GetRand get a random number in [min, max).

func GetSwaggerEndpointPath

func GetSwaggerEndpointPath(prefix string) string

GetSwaggerEndpointPath get Swagger ui http endpoint path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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