writer

package
v0.0.0-...-371bc73 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Write(Record) error
	SendIdentifier() error
}

Interface to write records to Goat server.

type Record

type Record interface {
	Reset()
	String() string
	ProtoMessage()
}

Record represents data for writing.

type Writer

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

Writer structure to write data to Goat server.

func CreateWriter

func CreateWriter(w writerI, conn *grpc.ClientConn) *Writer

CreateWriter creates writer with writer interface and gRPC connection.

func (*Writer) Finish

func (w *Writer) Finish()

Finish gets to know to the Goat server that a writing is finished and a response is expected. Then, it closes the gRPC connection.

func (*Writer) SendIdentifier

func (w *Writer) SendIdentifier() error

SendIdentifier sends identifier to Goat server.

func (*Writer) Write

func (w *Writer) Write(rec Record) error

Write writes to Goat server.

Jump to

Keyboard shortcuts

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