grpcsystem

package
v0.0.0-...-545971b Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package grpcsystem manages connecting, loading, monitoring, and disconnecting of gRPC plugins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCSystem

type GRPCSystem struct {

	// MonitoringFrequency is the minimum length of time between checks.
	// Defaults to 2 seconds.
	MonitoringFrequency  time.Duration
	RestartAutomatically bool
	// contains filtered or unexported fields
}

GRPCSystem manages connecting, loading, monitoring, and disconnecting gRPC plugins.

func New

func New(log ambient.AppLogger, pluginsystem ambient.PluginSystem) *GRPCSystem

New returns a new GRPCSystem.

func (*GRPCSystem) Connect

func (s *GRPCSystem) Connect(p ambient.Plugin, middleware bool)

Connect will connect to a new gRPC plugin, these don't have to be in the initial plugin loader.

func (*GRPCSystem) ConnectAll

func (s *GRPCSystem) ConnectAll()

ConnectAll will connect to all initial gRPC plugins in the plugin system.

func (*GRPCSystem) Disconnect

func (s *GRPCSystem) Disconnect()

Disconnect stops the gRPC clients.

func (*GRPCSystem) Monitor

func (s *GRPCSystem) Monitor(securesite ambient.SecureSite)

Monitor starts monitoring the gRPC plugins.

Jump to

Keyboard shortcuts

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