livingkit

package module
v0.0.0-...-def7144 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MongoAuthenticationDB         = "MONGO_AUTHENTICATION_DB"
	TextPlain                     = "text/plain"
	ContentType                   = "Content-Type"
	DebugHTTPClient               = "DEBUG_HTTPCLIENT"
	DebugHTTPClientBody           = "DEBUG_HTTPCLIENT_BODY"
	ApplicationJSON               = "application/json"
	ApplicationXWWWFormUrlencoded = "application/x-www-form-urlencoded"
	MultipartFormData             = "multipart/form-data"
)

Variables

This section is empty.

Functions

func IsValidUUID

func IsValidUUID(input string) bool

IsValidUUID checks input string whether valid UUID format or not.

func NewUUID4String

func NewUUID4String() string

NewUUID4String returns a randomly generated UUID V4 string.

func Retrying

func Retrying(retryTimes int, sleepTimes time.Duration, retryFunc func() error) error

Retrying supports retry behaviour especially HTTP request and task operation.

func RunCommand

func RunCommand(args []string, env ...string) error

RunCommand executes the named program with the given arguments.

func UTCDatetime

func UTCDatetime() time.Time

UTCDatetime returns current time and set to UTC.

Types

This section is empty.

Directories

Path Synopsis
database
oauth2
jwt
https://datatracker.ietf.org/doc/html/rfc6750
https://datatracker.ietf.org/doc/html/rfc6750

Jump to

Keyboard shortcuts

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