memdb

package
Version: v0.0.0-...-5ae6e0f Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package memdb implements a fast way for in-memory variables.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFreeSlots

func GetFreeSlots() int

func GetNextRequestNumber

func GetNextRequestNumber() uint64

GetNextRequestNumber returns the next id for the request

func GetRunningInstances

func GetRunningInstances(functionName string) (uint, error)

func GetTotalRunningFunctions

func GetTotalRunningFunctions() uint

func SetFunctionRunning

func SetFunctionRunning(functionName string) error

func SetFunctionStopped

func SetFunctionStopped(functionName string) error

Types

type ErrorFunctionNotFound

type ErrorFunctionNotFound struct{}

func (ErrorFunctionNotFound) Error

func (ErrorFunctionNotFound) Error() string

type Function

type Function struct {
	Name             string
	RunningInstances uint
}

Source Files

Jump to

Keyboard shortcuts

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