Versions in this module Expand all Collapse all v0 v0.0.7 Dec 10, 2022 Changes in this version + type Apollo struct + AppId string + Cluster string + Configurations map[string]json.RawMessage + NamespaceName string + ReleaseKey string + type Application struct + Addr string + AppId string + Cluster string + Secret string + type Client struct + App *Application + func NewClient(c *Application, opt ...Option) (*Client, error) + func (c *Client) Watch(namespace string, deft interface{}, ptr *unsafe.Pointer) error + type Notifcation struct + NamespaceName string + NotifcationID int64 + type Option func(o *Options) + func Auth(a auth.Auth) Option + func Backup(b backup.Backup) Option + func BackupPath(p string) Option + func EnableBackup(enable bool) Option + func Logger(l log.Logger) Option + func Transport(t transport.Transport) Option + func WatchInterval(t time.Duration) Option + type Options struct + Auth auth.Auth + Backup backup.Backup + BackupPath string + EnableBackup bool + Transport transport.Transport + WatchInterval time.Duration + type WatchCallback func(ctx context.Context, apol *Apollo) error