ncstreams

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(ctx context.Context, url string, subFnk getSubscriberFnk, options ...Option) (eventstream.Sourcer, error)

Open new source by URLs

Types

type Option

type Option func(opts *Options)

Option modificator callback

func WithDebug

func WithDebug(debug bool) Option

WithDebug puts debug mode into the source

func WithFormat

func WithFormat(format string) Option

WithFormat puts format name into the source

type Options

type Options struct {
	// Debug mode of the source
	Debug bool

	// Format converter
	Format converter.Converter
}

Options contains options of the source

Jump to

Keyboard shortcuts

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