model

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DynamoDBActionRetryAttempts uint

Deprecated: Use GetDynamoDBActionRetryAttempts instead

View Source
var GatewayKey string

Deprecated: Use GetGatewayKey instead

View Source
var HashKeys map[string]string

Deprecated: Use GetHashKeys/SetHashKeys instead

View Source
var HealthReportCleanUpFrequencySeconds uint

Deprecated: Use GetHealthReportCleanUpFrequencySeconds instead

View Source
var HealthReportRecordStaleMinutes uint

Deprecated: Use GetHealthReportRecordStaleMinutes instead

View Source
var ServiceDiscoveryTimeoutSeconds uint

Deprecated: Use GetServiceDiscoveryTimeoutSeconds instead

Functions

func ConnectDataStore

func ConnectDataStore(cfg *config.Config) error

func DeleteInstanceHealthFromDataStore added in v1.0.8

func DeleteInstanceHealthFromDataStore(instanceKeys ...*dynamodb.DynamoDBTableKeyValue) (deleteFailKeys []*dynamodb.DynamoDBTableKeyValue, err error)

func DeleteServerRouteFromDataStore

func DeleteServerRouteFromDataStore(serverKey string) error

func GetDynamoDBActionRetryAttempts added in v1.7.0

func GetDynamoDBActionRetryAttempts() uint

GetDynamoDBActionRetryAttempts returns the configured retry attempts value

func GetGatewayKey added in v1.7.0

func GetGatewayKey() string

GetGatewayKey returns the configured gateway key

func GetHashKeys added in v1.7.0

func GetHashKeys() map[string]string

GetHashKeys returns a copy of the hash keys map

func GetHealthReportCleanUpFrequencySeconds added in v1.7.0

func GetHealthReportCleanUpFrequencySeconds() uint

GetHealthReportCleanUpFrequencySeconds returns the configured cleanup frequency

func GetHealthReportRecordStaleMinutes added in v1.7.0

func GetHealthReportRecordStaleMinutes() uint

GetHealthReportRecordStaleMinutes returns the configured stale minutes value

func GetInstanceHealthFromDataStore added in v1.0.8

func GetInstanceHealthFromDataStore(instanceId string) (lastHealthy string, err error)

func GetServerRouteFromDataStore

func GetServerRouteFromDataStore(serverKey string) (serverUrl string, err error)

func GetServiceDiscoveryTimeoutSeconds added in v1.7.0

func GetServiceDiscoveryTimeoutSeconds() uint

GetServiceDiscoveryTimeoutSeconds returns the configured timeout value

func ListInactiveInstancesFromDataStore added in v1.0.8

func ListInactiveInstancesFromDataStore() (inactiveInstances []*healthStatus, err error)

func SetDynamoDBActionRetryAttempts added in v1.7.0

func SetDynamoDBActionRetryAttempts(v uint)

SetDynamoDBActionRetryAttempts sets the retry attempts value

func SetGatewayKey added in v1.7.0

func SetGatewayKey(v string)

SetGatewayKey sets the gateway key

func SetHashKeys added in v1.7.0

func SetHashKeys(v map[string]string)

SetHashKeys sets the hash keys map

func SetHealthReportCleanUpFrequencySeconds added in v1.7.0

func SetHealthReportCleanUpFrequencySeconds(v uint)

SetHealthReportCleanUpFrequencySeconds sets the cleanup frequency

func SetHealthReportRecordStaleMinutes added in v1.7.0

func SetHealthReportRecordStaleMinutes(v uint)

SetHealthReportRecordStaleMinutes sets the stale minutes value

func SetInstanceHealthToDataStore added in v1.0.8

func SetInstanceHealthToDataStore(namespaceId string, serviceId string, instanceId string, awsRegion string, serviceInfo string, hostInfo string) (err error)

func SetServiceDiscoveryTimeoutSeconds added in v1.7.0

func SetServiceDiscoveryTimeoutSeconds(v uint)

SetServiceDiscoveryTimeoutSeconds sets the timeout value

Types

This section is empty.

Jump to

Keyboard shortcuts

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