process

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Background

func Background()

Background will run as a goroutine to continually update internal references across the configured sets, pulling data from their specified locations.

func BackgroundEpisodicProcess

func BackgroundEpisodicProcess(ctx *gin.Context)

func Push

func Push(p Proc, ctx *gin.Context)

Push will take a Proc and push it onto the queue, awaiting the Background to give it to a worker to execute.

Types

type Proc

type Proc func(*gin.Context)

Proc is a process to be handled in the background, allowing for various components of episodical to request some sort of updating asynchronously. Essentially this is an internal queueing mechanism.

Jump to

Keyboard shortcuts

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