forgeutils

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextAddID

func ContextAddID(ctx context.Context) context.Context

func ContextAddToRequest

func ContextAddToRequest(r *http.Request) *http.Request

func ContextGetID

func ContextGetID(ctx context.Context) string

func ContextGetRequest

func ContextGetRequest(ctx context.Context) *http.Request

func EnvironmentSetValueInFile

func EnvironmentSetValueInFile(filePath, key string, value string)

func UnreachableError

func UnreachableError(err error)

Types

type JsonResponse

type JsonResponse struct {
	ContextID string `json:"context_id"`
	Success   bool   `json:"success"`
	Message   string `json:"message"`
	Data      any    `json:"data"`
}

Jump to

Keyboard shortcuts

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