Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrHasUnknownConfiguration = errors.New("has unknown configuration")
)
Functions ¶
This section is empty.
Types ¶
type ConfigureOptions ¶
type ConfigureOptions struct { Addr string TLSConfig struct { Addr string Cert string Key string } WriteApi struct { DataWriter configapi.DataWriter Addr string TLSConfig struct { Addr string Cert string Key string } } MaxWaitTimeForUpdate int // in seconds DataPump configapi.DataPump VersionComparator configapi.VersionComparator }
func (*ConfigureOptions) GetMaxWaitTimeForUpdate ¶
func (c *ConfigureOptions) GetMaxWaitTimeForUpdate() time.Duration
type ConfigureServer ¶
type ConfigureServer struct {
// contains filtered or unexported fields
}
func NewConfigureServer ¶
func NewConfigureServer(opt ConfigureOptions) *ConfigureServer
func (*ConfigureServer) Shutdown ¶
func (c *ConfigureServer) Shutdown() error
func (*ConfigureServer) Startup ¶
func (c *ConfigureServer) Startup() error
type DefaultVersionComparator ¶ added in v0.10.0
type DefaultVersionComparator struct { }
func (DefaultVersionComparator) HasUpdate ¶ added in v0.10.0
func (d DefaultVersionComparator) HasUpdate(requestVersion, dataVersion string) bool
type NotifyChannel ¶
type NotifyChannel chan NotifyEvent
type NotifyEvent ¶
type NotifyEvent struct {
Configuration *configapi.Configuration
}
Click to show internal directories.
Click to hide internal directories.