csp

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChan

func NewChan(val cue.Value) (hofcontext.Runner, error)

func NewRecv

func NewRecv(val cue.Value) (hofcontext.Runner, error)

func NewSend

func NewSend(val cue.Value) (hofcontext.Runner, error)

Types

type Chan

type Chan struct{}

func (*Chan) Run

func (T *Chan) Run(ctx *hofcontext.Context) (interface{}, error)

type Msg

type Msg struct {
	Key string    `json:"key"`
	Val cue.Value `json:"val"`
}

type Recv

type Recv struct{}

func (*Recv) Run

func (T *Recv) Run(ctx *hofcontext.Context) (interface{}, error)

type Send

type Send struct{}

func (*Send) Run

func (T *Send) Run(ctx *hofcontext.Context) (interface{}, error)

Jump to

Keyboard shortcuts

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