dchan

package module
v0.0.0-...-792d86f Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DChan

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

func New

func New(ctx context.Context, c *hz.Client, name string, options ...Option) (*DChan, error)

func (*DChan) Close

func (dc *DChan) Close(ctx context.Context) error

func (*DChan) EnhanceReceiver

func (dc *DChan) EnhanceReceiver(ctx context.Context, ch chan interface{}) error

func (*DChan) EnhanceSender

func (dc *DChan) EnhanceSender(ctx context.Context, ch chan interface{}) error

func (*DChan) MakeReceiver

func (dc *DChan) MakeReceiver(ctx context.Context) (<-chan interface{}, error)

func (*DChan) MakeSender

func (dc *DChan) MakeSender(ctx context.Context) (chan<- interface{}, error)

type ErrorHandler

type ErrorHandler func(err error)

type Option

type Option func(c *config) error

func WithErrorHandler

func WithErrorHandler(handler ErrorHandler) Option

Jump to

Keyboard shortcuts

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