server

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrometheusMetricsRegister

func PrometheusMetricsRegister()

PrometheusMetricsRegister Register metrics with prometheus

Types

type ParsedVaultToken

type ParsedVaultToken struct {
	Token          *vault.Secret
	DisplayName    string
	TTL            time.Duration
	ExpireTimeUnix int64
}

type VaultMonitorServer

type VaultMonitorServer struct {
	// contains filtered or unexported fields
}

func NewVaultMonitorServer

func NewVaultMonitorServer(l *zap.Logger, c *internal.Config) (*VaultMonitorServer, error)

NewVaultMonitorServer Creates new NewVaultMonitorServer with background context

func (*VaultMonitorServer) StartScheduler

func (v *VaultMonitorServer) StartScheduler() error

StartScheduler starts the scheduler with schedulerJob() as scheduled job

func (*VaultMonitorServer) StartServer

func (v *VaultMonitorServer) StartServer() error

StartServer Starts the monitoring server as a blocking function call

Jump to

Keyboard shortcuts

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