Help us shape the future of Go! Take the 2026 Go Developer Survey

runtime

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Protocol runtime.Protocol
	Host     string
	Port     int
	Mode     modes.DaprMode

	MaxBufferSize int
	// contains filtered or unexported fields
}

type Event

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

func NewEvent

func NewEvent(ctx *context.Context,
	bindingEvent *common.BindingEvent,
	topicEvent *common.TopicEvent,
	respCh chan *EventResponse) Event

type EventResponse

type EventResponse struct {
	Data  []byte
	Error error
}

type Runtime

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

func NewFuncRuntime

func NewFuncRuntime(config *Config, ctx *ofctx.FunctionContext) *Runtime

func (*Runtime) CreateFuncChannel

func (r *Runtime) CreateFuncChannel() error

func (*Runtime) EnqueueEvent

func (r *Runtime) EnqueueEvent(event *Event)

func (*Runtime) GetPendingEventsCount

func (r *Runtime) GetPendingEventsCount() int

func (*Runtime) OnBindingEvent

func (r *Runtime) OnBindingEvent(ctx *context.Context, event *common.BindingEvent) ([]byte, error)

func (*Runtime) OnTopicEvent

func (r *Runtime) OnTopicEvent(ctx *context.Context, event *common.TopicEvent) error

func (*Runtime) ProcessEvents

func (r *Runtime) ProcessEvents()

Jump to

Keyboard shortcuts

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