Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterToBlob ¶
ClusterToBlob converts a clusterID and activeID to a Blobstore blob
func HealthToBlob ¶
HealthToBlob converts a gatewayID and healthStats proto to a Blobstore blob
Types ¶
type HealthBlobstore ¶
type HealthBlobstore interface { GetHealth(networkID string, gatewayID string) (*protos.HealthStats, error) UpdateHealth(networkID string, gatewayID string, health *protos.HealthStats) error GetClusterState(networkID string, clusterID string) (*protos.ClusterState, error) UpdateClusterState(networkID string, clusterID string, logicalID string) error }
HealthBlobstore defines a storage interface for the health service. This interface defines create/update and read functionality while abstracting away any underlying storage transaction mechanics for clients.
func NewHealthBlobstore ¶
func NewHealthBlobstore(factory blobstore.BlobStorageFactory) (HealthBlobstore, error)
NewHealthBlobstore creates a new HealthBlobstore using the provided blobstore factory for the underlying storage functionality.
Click to show internal directories.
Click to hide internal directories.