configserver

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2024 License: MPL-2.0 Imports: 14 Imported by: 1

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL