device

package
v0.0.0-...-3d84f90 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Write(msg string) error
	Read(bufSize int) ([]byte, error)
	Query(msg string, bufSize int) ([]byte, error)
}

Client is the interface that describe the client of MAO-WFS devices.

type CorrelatorHandler

type CorrelatorHandler interface {
	Start(ctx context.Context, st, et time.Time) error
	Halt(ctx context.Context, ht time.Time) error
}

CorrelatorHandler is the interface that describe the correlator handler.

type FGHandler

type FGHandler interface {
	Start(ctx context.Context, st, et time.Time) error
	Halt(ctx context.Context, ht time.Time) error
}

FGHandler is the interface that describe the FG handler.

type WFSHandler

type WFSHandler struct {
	Config     config.DeviceConfig
	Correlator CorrelatorHandler
	FG         FGHandler
}

WFSHandler represents the handler of MAO-WFS.

func NewWFSHandler

func NewWFSHandler(conf config.DeviceConfig, corrHan CorrelatorHandler, fgHan FGHandler) *WFSHandler

NewWFSHandler returns a new handler of MAO-WFS.

func (*WFSHandler) Halt

func (h *WFSHandler) Halt(ctx context.Context, haltTime time.Time) error

Halt halts MAO-WFS.

func (*WFSHandler) Start

func (h *WFSHandler) Start(ctx context.Context, startTime, endTime time.Time) error

Start starts MAO-WFS.

Jump to

Keyboard shortcuts

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