direct

package
v0.0.0-...-2af415a Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DaemonDirector

type DaemonDirector interface {
	Start() error
	Direct(IdGetSetter) (any, error)
	WatcherDirect(IdGetSetter) (<-chan IdGetter, error)
}

func NewDaemonDirector

func NewDaemonDirector(ctx context.Context, s Send, r DaemonRecv) DaemonDirector

type DaemonRecv

type DaemonRecv func() (Response, error)

type IdGetSetter

type IdGetSetter interface {
	IdGetter
	// contains filtered or unexported methods
}

type IdGetter

type IdGetter interface {
	GetId() string
}

type Request

type Request interface {
	IdGetter
	// contains filtered or unexported methods
}

type Response

type Response interface {
	IdGetter
}

type Send

type Send func(any) error

type SrvDirector

type SrvDirector interface {
	Direct(IdGetter) error
	WatcherDirect(<-chan IdGetter) error
	Outlet() <-chan Request
	Start() error
}

func NewSrvDirector

func NewSrvDirector(ctx context.Context, s Send, r SrvRecv) SrvDirector

type SrvRecv

type SrvRecv func() (Request, error)

Jump to

Keyboard shortcuts

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