null

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package null 提供丢弃数据的 Sink,用于性能测试

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sink

type Sink struct{}

Sink 丢弃所有数据

func New

func New() *Sink

New 创建新的 Sink

func (*Sink) Consume

func (s *Sink) Consume(ctx context.Context, in <-chan types.Record) error

Consume 丢弃所有数据

func (*Sink) Init

func (s *Sink) Init(config []byte) error

Init 初始化 Sink (无配置)

Jump to

Keyboard shortcuts

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