transport

package
v0.0.0-...-ac4a226 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Submit

func Submit(packet *rpc.LogMessage, xclient rpcx.XClient) error

Submit submits the packet to server by using rpcx

Types

type BufferingMetadata

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

BufferingMetadata contains the cold data's buffering information

type Port

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

Port contains the rpcx client and the buffering information

func (*Port) Close

func (p *Port) Close()

Close closes the rpcx client

type SubmitFunc

type SubmitFunc func(*rpc.LogMessage, rpcx.XClient) error

SubmitFunc is a type for submission the packet to rpcx

type Transport

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

Transport contains the rpcx and communcation information

func InitTransport

func InitTransport(configFileName string, customFilterFunc s.CustomFilterFunc) (*Transport, error)

InitTransport returns the instance of the Transport structure

func (*Transport) Close

func (t *Transport) Close()

Close closes the transport data structure

func (*Transport) Run

func (t *Transport) Run() error

Run executes the scheduler

Jump to

Keyboard shortcuts

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