connector

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector interface {
	Configurations(ctx context.Context, identifiers ...string) (evaluation.Configurations, error)
	Variables(ctx context.Context, identifiers ...string) ([]evaluation.Variable, error)
	Stream(ctx context.Context, updater Updater) error
	Close() error
}

type FileConnector

type FileConnector struct {
	// contains filtered or unexported fields
}

func NewFileConnector

func NewFileConnector(sdkKey string, path string) (FileConnector, error)

func (FileConnector) Close

func (f FileConnector) Close() error

func (FileConnector) Configurations

func (f FileConnector) Configurations(ctx context.Context, identifiers ...string) (evaluation.Configurations, error)

func (FileConnector) Stream

func (f FileConnector) Stream(ctx context.Context, updater Updater) error

func (FileConnector) Variables

func (f FileConnector) Variables(ctx context.Context, identifiers ...string) ([]evaluation.Variable, error)

type Msg

type Msg struct {
	Event []byte
	Data  []byte
}

type Updater

type Updater interface {
	OnDisconnect()
	OnEvent(msg *Msg)
	OnConnect()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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