host

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnchorProvider

type AnchorProvider interface {
	Anchor() anchor.Anchor
}

type ExecutorProvider

type ExecutorProvider interface {
	Executor() csp.Executor
}

type Host

type Host api.Host

func (Host) AddRef

func (h Host) AddRef() Host

func (Host) Executor

func (h Host) Executor(ctx context.Context) (csp.Executor, capnp.ReleaseFunc)

func (Host) PubSub

func (h Host) PubSub(ctx context.Context) (pubsub.Router, capnp.ReleaseFunc)

func (Host) Registry

func (h Host) Registry(ctx context.Context) (service.Registry, capnp.ReleaseFunc)

func (Host) Release

func (h Host) Release()

func (Host) Resolve

func (h Host) Resolve(ctx context.Context) error

func (Host) Root

func (Host) View

func (h Host) View(ctx context.Context) (view.View, capnp.ReleaseFunc)

type PubSubProvider

type PubSubProvider interface {
	PubSub() pubsub.Router
}

type RegistryProvider

type RegistryProvider interface {
	Registry() service.Registry
}

type Server

type Server struct {
	ViewProvider     ViewProvider
	PubSubProvider   PubSubProvider
	AnchorProvider   AnchorProvider
	RegistryProvider RegistryProvider
	ExecutorProvider ExecutorProvider
}

Server provides the Host capability.

func (Server) Client

func (s Server) Client() capnp.Client

func (Server) Executor

func (s Server) Executor(_ context.Context, call api.Host_executor) error

func (Server) Host

func (s Server) Host() Host

func (Server) PubSub

func (s Server) PubSub(_ context.Context, call api.Host_pubSub) error

func (Server) Registry

func (s Server) Registry(_ context.Context, call api.Host_registry) error

func (Server) Root

func (s Server) Root(_ context.Context, call api.Host_root) error

func (Server) View

func (s Server) View(_ context.Context, call api.Host_view) error

type ViewProvider

type ViewProvider interface {
	View() view.View
}

Directories

Path Synopsis
Package test_host is a generated GoMock package.
Package test_host is a generated GoMock package.

Jump to

Keyboard shortcuts

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