Documentation ¶
Overview ¶
Package nacos implements gcfg.Adapter using nacos service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements gcfg.Adapter implementing using nacos service.
func (*Client) Available ¶
Available checks and returns the backend configuration service is available. The optional parameter `resource` specifies certain configuration resource.
Note that this function does not return error as it just does simply check for backend configuration service.
type Config ¶
type Config struct { ServerConfigs []constant.ServerConfig `v:"required"` // See constant.ServerConfig ClientConfig constant.ClientConfig `v:"required"` // See constant.ClientConfig ConfigParam vo.ConfigParam `v:"required"` // See vo.ConfigParam Watch bool // Watch watches remote configuration updates, which updates local configuration in memory immediately when remote configuration changes. }
Config is the configuration object for nacos client.
Click to show internal directories.
Click to hide internal directories.