peer

package
v0.0.0-...-1fa5987 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Peer

type Peer struct {
	SystemLog   logging.Logger
	VarDir      string
	GUIEndpoint string
	Debug       bool
	// contains filtered or unexported fields
}

func (*Peer) Do

func (p *Peer) Do(ctx context.Context, out any, doc string, vars map[string]any) error

func (*Peer) Init

func (p *Peer) Init(ctx context.Context) error

func (*Peer) Shutdown

func (p *Peer) Shutdown(ctx context.Context) error

func (*Peer) Subscribe

func (p *Peer) Subscribe(ctx context.Context, newRes func() any, doc string, vars map[string]any) api.Subscription

type Subscription

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

func (*Subscription) Err

func (sub *Subscription) Err() error

func (*Subscription) Events

func (sub *Subscription) Events() <-chan any

func (*Subscription) Stop

func (sub *Subscription) Stop()

Jump to

Keyboard shortcuts

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