rpc

package
v0.0.0-...-dd73c42 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleConnection

func HandleConnection(conn io.ReadWriteCloser)

HandleConnection creates a new gourdd rpc server codec

func RegisterHandler

func RegisterHandler()

RegisterHandler initializes the rpc command handler

Types

type Host

type Host struct {
}

Host accepts and responds to rpc commands for the local gourdd

func (*Host) Echo

func (c *Host) Echo(message *string, reply *command.EchoResponse) error

Echo responds with the message that was sent to it

func (*Host) Install

func (c *Host) Install(params *command.InstallRequestParams, reply *command.InstallResponse) error

Install responds with a message indicating whether the installation succeeded or failed

func (*Host) Ping

func (c *Host) Ping(_ interface{}, reply *command.PingResponse) error

Ping responds with pong

Jump to

Keyboard shortcuts

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