ws

package
v0.0.0-...-ae72c4d Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	SeedSend
	PushReceived
}

func (App) SendRecv

func (a App) SendRecv(ctx context.Context) error

type PopSeed

type PopSeed[T any] func(ctx context.Context) (seed T, e error)

func (PopSeed[T]) ToSerialized

func (s PopSeed[T]) ToSerialized(s2b Seed2bytes[T]) PopSerializedSeed

type PopSerializedSeed

type PopSerializedSeed func(ctx context.Context) (serialized []byte, e error)

func (PopSerializedSeed) ToSeedSender

func (p PopSerializedSeed) ToSeedSender(send Send) SeedSend

type PushReceived

type PushReceived func(ctx context.Context) error

type PushRequest

type PushRequest func(ctx context.Context, serialized []byte) error

func (PushRequest) ToPushReceived

func (p PushRequest) ToPushReceived(recv Recv) PushReceived

type Recv

type Recv func(ctx context.Context) (data []byte, e error)

type Seed2bytes

type Seed2bytes[T any] func(seed T) (serialized []byte, e error)

type SeedSend

type SeedSend func(ctx context.Context) error

type Send

type Send func(ctx context.Context, data []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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