mi

package
v0.0.0-...-98b6286 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: GPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MI

type MI interface {
	Addr() net.Addr
	Connect(url string) error
	Wait() error
	Call(command string, params interface{}, fn MIreply) error
	CallSync(command string, params interface{}) (*jsonrpc.JsonRPCResponse, error)
}

func MIHandler

func MIHandler(config *config.Config) MI

type MIDatagram

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

func (*MIDatagram) Addr

func (mi *MIDatagram) Addr() net.Addr

func (*MIDatagram) Call

func (mi *MIDatagram) Call(command string, params interface{}, fn MIreply) error

func (*MIDatagram) CallSync

func (mi *MIDatagram) CallSync(command string, param interface{}) (*jsonrpc.JsonRPCResponse, error)

func (*MIDatagram) Connect

func (mi *MIDatagram) Connect(url string) error

func (*MIDatagram) Wait

func (mi *MIDatagram) Wait() error

type MIreply

type MIreply func(response *jsonrpc.JsonRPCResponse)

Jump to

Keyboard shortcuts

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