Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter contains times from/to filter records.
type Preparer ¶
Preparer to prepare virtual machine data to specific structure for writing to Goat server.
func CreatePreparer ¶
func CreatePreparer(ir *reader.Reader, cr *reader.Reader, limiter *rate.Limiter, conn *grpc.ClientConn) *Preparer
CreatePreparer creates Preparer for virtual machine records.
func (*Preparer) Finish ¶
func (p *Preparer) 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 (*Preparer) InitializeMaps ¶
InitializeMaps reads additional data for virtual machine record.
func (*Preparer) Preparation ¶
Preparation prepares virtual machine data for writing and call method to write.
func (*Preparer) SendIdentifier ¶
SendIdentifier sends identifier to Goat server.
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor to process server's data.
func CreateProcessor ¶
CreateProcessor creates processor with reader.
type SFStruct ¶
SFStruct represents "Resource" with information about server and his flavor.
func (*SFStruct) UnmarshalJSON ¶
UnmarshalJSON function to implement Resource interface.
type Writer ¶
type Writer struct { Stream pb.AccountingService_ProcessVmsClient // contains filtered or unexported fields }
Writer structure to write virtual machine data to Goat server.
func CreateWriter ¶
CreateWriter creates Writer for virtual machine data.
func (*Writer) Close ¶
Close gets to know to the goat server that a writing is finished and a response is expected.
func (*Writer) SendIdentifier ¶
SendIdentifier sends identifier to Goat server.
func (*Writer) SetUp ¶
func (w *Writer) SetUp(conn *grpc.ClientConn)
SetUp creates gRPC client and sets up Stream to process virtual machines to Writer.