internal

package
v0.0.0-...-1a22241 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CleanupNothing = ArchiveAction("nothing")
	CleanupArchive = ArchiveAction("archive")
	CleanupDelete  = ArchiveAction("delete")
)

Variables

This section is empty.

Functions

func Debounce

func Debounce(wait time.Duration, fn func()) func()

Creates a debounced function that delays invoking fn until after wait milliseconds have elapsed since the last time the debounced function was invoked.

func NewServer

func NewServer(log hclog.Logger) pub.PublisherServer

NewServer creates a new publisher Server.

Types

type ArchiveAction

type ArchiveAction string

type RealTimeSettings

type RealTimeSettings struct {
	StartAtDate            time.Time
	ChangeDebounceInterval time.Duration
}

func (RealTimeSettings) MarshalJSON

func (r RealTimeSettings) MarshalJSON() ([]byte, error)

func (RealTimeSettings) String

func (r RealTimeSettings) String() string

func (*RealTimeSettings) UnmarshalJSON

func (r *RealTimeSettings) UnmarshalJSON(b []byte) error

type RealTimeState

type RealTimeState struct {
	StartAtDate time.Time `json:"startAtDate"`
}

func (RealTimeState) String

func (r RealTimeState) String() string

type Server

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

func (*Server) ConfigureRealTime

func (*Server) Connect

func (s *Server) Connect(ctx context.Context, req *pub.ConnectRequest) (*pub.ConnectResponse, error)

func (*Server) ConnectSession

func (*Server) Disconnect

func (*Server) DiscoverShapes

func (*Server) PublishStream

func (s *Server) PublishStream(req *pub.PublishRequest, stream pub.Publisher_PublishStreamServer) error

type Settings

type Settings struct {
	RootPath      string        `json:"rootPath"`
	Filters       []string      `json:filters`
	CleanupAction ArchiveAction `json:archiveAction`
	ArchivePath   string        `json:"archivePath"`
	HasHeader     bool          `json:"hasHeader"`
	Delimiter     string        `json:"delimiter"`
}

func (*Settings) Validate

func (s *Settings) Validate() error

Validate returns an error if the Settings are not valid. It also populates the internal fields of settings.

type ShapeColumn

type ShapeColumn struct {
	Name   string
	Type   string
	Format string
}

type ShapeSettings

type ShapeSettings struct {
	Name    string
	Columns []ShapeColumn
	Keys    []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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