servicecontext

package
v0.0.0-...-c80d36e Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: MIT, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetContext

func SetContext(ctx context.Context, info Info) context.Context

SetContext wraps the context with the service info

Types

type Info

type Info struct {
	System  string
	Env     string
	Service string
	Tag     string
}

Info type holds useful info about the currently-running service

func GetContext

func GetContext(ctx context.Context) *Info

GetContext retrieves the service info from the context

Jump to

Keyboard shortcuts

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