opslevel_common

package module
v2023.11.16 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 7 Imported by: 0

README

Overall

opslevel-common

Library of common or utility code for sharing across all opslevel golang projects

Documentation

Index

Constants

View Source
const ReleaseVersion = "v2023.11.16"

Variables

This section is empty.

Functions

func GetSample

func GetSample[T any](sampleCount int, data []T) []T

func InitSignalHandler

func InitSignalHandler() <-chan struct{}

InitSignalHandler Usage:

	func Start() {
   log.Info().Msg("Starting...")
   <-opslevel_common.InitSignalHandler() // Block until signals
   log.Info().Msg("Stopping...")
	}

func Run

func Run(name string)

func Stop

func Stop()

Types

This section is empty.

Jump to

Keyboard shortcuts

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