Documentation
¶
Index ¶
Constants ¶
View Source
const DSConnectionStatusNotConnected = "DATASERVER_NOT_CONNECTED"
Variables ¶
This section is empty.
Functions ¶
func GetDataServerAddress ¶ added in v0.0.55
func GetDataServerAddress() string
func GetLocalDataServerAddress ¶ added in v0.0.55
func GetLocalDataServerAddress() string
func NewEphemeral ¶ added in v0.0.55
func NewEphemeral( ctx context.Context, cfg *Config, ) (sdcpb.DataServerClient, func() error, error)
NewEphemeral returns a short-lived client and a close function. Call closeFn() when you're done.
Types ¶
type Client ¶
type Client interface {
Start(ctx context.Context) error
Stop(ctx context.Context)
GetAddress() string
IsConnectionReady() bool
IsConnected() bool
ConnState() connectivity.State
WaitForStateChange(ctx context.Context, source connectivity.State) bool
Connect()
sdcpb.DataServerClient
}
Client is a long-lived DataServer client (for controllers, daemons, etc.).
func NewFakeClient ¶
func NewFakeClient() Client
Click to show internal directories.
Click to hide internal directories.