conn

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package conn holds a streaming ingest connetion.

Index

Constants

This section is empty.

Variables

View Source
var BuffPool = sync.Pool{
	New: func() interface{} {
		return &bytes.Buffer{}
	},
}

BuffPool provides a pool of *bytes.Buffer objects.

Functions

This section is empty.

Types

type Conn

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

Conn provides connectivity to the Kusto streaming ingestion service.

func New

func New(endpoint string, auth kusto.Authorization) (*Conn, error)

New returns a new Conn object.

func (*Conn) Write

func (c *Conn) Write(ctx context.Context, db, table string, payload *bytes.Buffer, format properties.DataFormat, mappingName string) error

Write writes into database "db", table "table" what is stored in "payload" which should be encoded in "format" and have a server side data mapping reference named "mappingName". "mappingName" can be nil if the format doesn't require it.

Jump to

Keyboard shortcuts

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