container

package
v0.0.0-...-3c9b5b7 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler[T any](ctx context.Context, k string) (T, error)

func Module

func Module[T any](ctx context.Context, k string) (T, error)

Types

type TStream

type TStream[T any] chan T

func Stream

func Stream[T any](ctx context.Context, k string) (TStream[T], error)

func (TStream[T]) Recv

func (ch TStream[T]) Recv(ctx context.Context) (T, error)

func (TStream[T]) Send

func (ch TStream[T]) Send(ctx context.Context, i int, data []T) func() error

Jump to

Keyboard shortcuts

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