session

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(context view.Context) *jsonSession

func NewJSON

func NewJSON(context view.Context, caller view.View, party view.Identity) (*jsonSession, error)

func ReadFirstMessageOrPanic

func ReadFirstMessageOrPanic(context view.Context) []byte

func ReadMessageWithTimeout

func ReadMessageWithTimeout(session Session, d time.Duration) ([]byte, error)

Types

type Session

type Session interface {
	view.Session
}

func ReadFirstMessage

func ReadFirstMessage(context view.Context) (Session, []byte, error)

Jump to

Keyboard shortcuts

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