shared

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptyReply

type EmptyReply struct{}

EmptyReply placeholder (needed for net/rpc signature)

type Notifier

type Notifier interface {
	Notify(message string) error
}

Notifier is the interface exposed to the host.

type NotifierPlugin

type NotifierPlugin struct {
	Impl Notifier
}

Plugin wrapper for go-plugin

func (*NotifierPlugin) Client

func (p *NotifierPlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)

func (*NotifierPlugin) Server

func (p *NotifierPlugin) Server(*plugin.MuxBroker) (interface{}, error)

type NotifierRPC

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

Client-side proxy

func (*NotifierRPC) Notify

func (c *NotifierRPC) Notify(message string) error

type NotifierRPCServer

type NotifierRPCServer struct {
	Impl Notifier
}

Server-side implementation of the RPC

func (*NotifierRPCServer) Notify

func (s *NotifierRPCServer) Notify(args NotifyArgs, reply *EmptyReply) error

type NotifyArgs

type NotifyArgs struct {
	Message string
}

Args for Notify

Jump to

Keyboard shortcuts

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