interfaces

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientInterface

type ClientInterface interface {
	IsConnected() bool
	SendHeartbeat() error
	GetConfig() *types.Config
	GetClientID() string
}

ClientInterface defines the interface that relay client must implement

type ConfigInterface

type ConfigInterface interface {
	GetRelayHost() string
	GetRelayPort() int
	GetRelayTimeout() time.Duration
	GetTLSEnabled() bool
	GetTLSMinVersion() string
	GetTLSVerifyCert() bool
	GetTLSCACert() string
	GetTLSClientCert() string
	GetTLSClientKey() string
	GetTLSServerName() string
	GetAuthType() string
	GetAuthSecret() string
	GetRateLimitingEnabled() bool
	GetRateLimitingMaxRetries() int
	GetRateLimitingBackoffMultiplier() float64
	GetRateLimitingMaxBackoff() time.Duration
}

ConfigInterface defines the interface for configuration

Jump to

Keyboard shortcuts

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