package socket

import "github.com/influxdata/flux/stdlib/socket"

Package socket implements a source that gets input from a socket connection and produces tables given a decoder. This is a good candidate for streaming use cases. For now, it produces a single table for everything that it receives from the start to the end of the connection.

Index

Constants

const FromSocketKind = "fromSocket"

Functions

func NewSocketSource

Types

type FromSocketOpSpec

type FromSocketOpSpec struct {
	URL     string `json:"url"`
	Decoder string `json:"decoder"`
}

func (*FromSocketOpSpec) Kind

type FromSocketProcedureSpec

type FromSocketProcedureSpec struct {
	plan.DefaultCost
	URL     string
	Decoder string
}

func (*FromSocketProcedureSpec) Copy

func (*FromSocketProcedureSpec) Kind

Source Files

from.go

Version
v0.196.1 (latest)
Published
Feb 19, 2025
Platform
linux/amd64
Imports
15 packages
Last checked
1 day ago

Tools for package owners.