Documentation
¶
Index ¶
- Constants
- type Apollo
- 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
- 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
Constants ¶
View Source
const ( DEFAULT_CLUSTER = "default" DEFAULT_NAMESAPCE_NAME = "application" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Apollo ¶
func NewCompleteApollo ¶
func (*Apollo) CheckExist ¶
func (*Apollo) CleanCache ¶
func (*Apollo) GetConfigurations ¶
func (*Apollo) GetFloatValue ¶
func (*Apollo) GetStringValue ¶
func (*Apollo) ListenChangeEvent ¶
func (a *Apollo) ListenChangeEvent() <-chan *agollo.ChangeEvent
func (*Apollo) SetCluster ¶
func (*Apollo) SetNamespaceName ¶
func (*Apollo) StartWithLogger ¶
type ApolloLog ¶
type ApolloLog struct { Logger *log.LoggerContext ServerName string }
func NewApolloLog ¶
Click to show internal directories.
Click to hide internal directories.