adapter

package
v0.0.0-...-d6b8a38 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinAdapter

type BinAdapter interface {
	// WriteRawSignal AD値を受信する
	WriteRawSignal(ctx context.Context, rcvSuccess <-chan bool, stg *model.Setting) error
}

func NewBinAdapter

func NewBinAdapter(c socket.Conn, p parser.Parser, w io.ReadWriteSeeker) BinAdapter

type CSVWriterGroup

type CSVWriterGroup struct {
	EEGWriter   csv.Writer
	HRWriter    io.Writer
	AnsWriter   io.Writer
	ExplsWriter io.Writer
	RespWriter  io.Writer
}

type TxtAdapter

type TxtAdapter interface {
	StartRec(recTime time.Duration, recDateTime time.Time) error
	EndRec() error
	GetStatus() (model.Status, error)
	WriteTrendData(ctx context.Context, rcvSuccess chan<- bool, w CSVWriterGroup, at model.AnalysisType) error
	GetSetting() (*model.Setting, error)
}

TxtAdapter テキストデータでトレンドデータの受信やコマンドの送受信をする

Directories

Path Synopsis
Package mock_adapter is a generated GoMock package.
Package mock_adapter is a generated GoMock package.

Jump to

Keyboard shortcuts

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