Versions in this module Expand all Collapse all v1 v1.1.5 Dec 22, 2023 v1.0.0 Dec 22, 2023 Changes in this version + const DEFAULT_CLUSTER + const DEFAULT_NAMESAPCE_NAME + type Apollo struct + AppConfig *agollo.AppConfig + func NewApollo(serverName string) (*Apollo, error) + func NewCompleteApollo(serverName, cluster, namespaceName string) (*Apollo, error) + func (a *Apollo) Cache(interval int64) *Apollo + func (a *Apollo) CheckExist() (bool, error) + func (a *Apollo) CleanCache() *Apollo + func (a *Apollo) GetBoolValue(key string, defaultValue bool) bool + func (a *Apollo) GetConfigurations(v interface{}) error + func (a *Apollo) GetFloatValue(key string, defaultValue float64) float64 + func (a *Apollo) GetIntValue(key string, defaultValue int) int + func (a *Apollo) GetStringValue(key, defaultValue string) string + func (a *Apollo) GetURL() string + func (a *Apollo) ListenChangeEvent() <-chan *agollo.ChangeEvent + func (a *Apollo) SetAppId(appId string) *Apollo + func (a *Apollo) SetCluster(cluster string) *Apollo + func (a *Apollo) SetNamespaceName(namespace string) *Apollo + func (a *Apollo) Start() error + func (a *Apollo) StartWithLogger(ctx context.Context, loggerInterface agollo.LoggerInterface) error + type ApolloLog struct + Logger *log.LoggerContext + ServerName string + func NewApolloLog(serverName string) (*ApolloLog, error) + func (l *ApolloLog) Debug(v ...interface{}) + func (l *ApolloLog) Debugf(format string, params ...interface{}) + func (l *ApolloLog) Error(v ...interface{}) error + func (l *ApolloLog) Errorf(format string, params ...interface{}) error + func (l *ApolloLog) Info(v ...interface{}) + func (l *ApolloLog) Infof(format string, params ...interface{}) + func (l *ApolloLog) Warn(v ...interface{}) error + func (l *ApolloLog) Warnf(format string, params ...interface{}) error