node

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Overview

Node-level utilities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryStats

type MemoryStats struct {
	LuaSharedDicts struct {
		Kong struct {
			AllocatedSlabs int64 `json:"allocated_slabs"`
			Capacity       int64 `json:"capacity"`
		} `json:"kong"`
		KongDbCache struct {
			AllocatedSlabs int64 `json:"allocated_slabs"`
			Capacity       int64 `json:"capacity"`
		} `json:"kong_db_cache"`
	} `json:"lua_shared_dicts"`
	WorkersLuaVms []workerLuaVmStats `json:"workers_lua_vms"`
}

type Node

type Node struct {
	bridge.PdkBridge
}

Holds this module's functions. Accessible as `kong.Node`

func (Node) GetId

func (n Node) GetId() (string, error)

kong.Node.GetId() returns the v4 UUID used by this node to describe itself.

func (Node) GetMemoryStats

func (n Node) GetMemoryStats() (MemoryStats, error)

kong.Node.GetMemoryStats() returns memory usage statistics about this node.

Jump to

Keyboard shortcuts

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