Documentation
¶
Index ¶
- type ApolloConfig
- type ApolloConnConfig
- type App
- type Cluster
- type ConfigValue
- type Namespace
- type Notification
- type Server
- func (s *Server) AddApp(appId string) error
- func (s *Server) AddCluster(appId string, clusterName string) error
- func (s *Server) AddNamespaceWithValue(appId string, clusterName string, namespace string, value string) error
- func (s *Server) Close() error
- func (s *Server) DeleteApp(appId string) bool
- func (s *Server) DeleteCluster(appId string, clusterName string) bool
- func (s *Server) DeleteNamespace(appId string, clusterName string, namespace string) bool
- func (s *Server) GetApp(appId string) (*App, bool)
- func (s *Server) GetApps() []*App
- func (s *Server) GetCluster(appId string, clusterName string) (*Cluster, bool)
- func (s *Server) GetClusters(appId string) ([]*Cluster, bool)
- func (s *Server) GetConfig(appId string, clusterName string, namespace string) (string, bool)
- func (s *Server) Start() (int, error)
- func (s *Server) UpdateNamespaceWithValue(appId string, clusterName string, namespace string, value string) error
- type ServerConfig
- type ServicesConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApolloConfig ¶
type ApolloConfig struct {
ApolloConnConfig
Configurations map[string]interface{} `json:"configurations"`
}
type ApolloConnConfig ¶
type ConfigValue ¶
type ConfigValue struct {
Value string `json:"value"`
}
type Notification ¶
type Notification struct {
NamespaceName string `json:"namespaceName"`
NotificationId int64 `json:"notificationId"`
}
Notification NotificationId use to detect data updates
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(cfg *ServerConfig) (*Server, error)
func (*Server) AddNamespaceWithValue ¶
func (*Server) DeleteCluster ¶
func (*Server) DeleteNamespace ¶
func (*Server) GetCluster ¶
type ServerConfig ¶
type ServerConfig struct {
Port int
}
type ServicesConfig ¶
Click to show internal directories.
Click to hide internal directories.