ipc

package
v0.0.0-...-0a77afb Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2016 License: Apache-2.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 IpcClient

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

func NewIpcClient

func NewIpcClient(server *IpcServer) *IpcClient

func (*IpcClient) Call

func (client *IpcClient) Call(method, params string) (resp *Response, err error)

func (*IpcClient) Close

func (client *IpcClient) Close()

type IpcServer

type IpcServer struct {
	Server
}

func NewIpcServer

func NewIpcServer(server Server) *IpcServer

func (*IpcServer) Connect

func (server *IpcServer) Connect() chan string

type Request

type Request struct {
	Method string "method"
	Params string "params"
}

type Response

type Response struct {
	Code string "code"
	Body string "body"
}

type Server

type Server interface {
	Name() string
	Handle(method, params string) *Response
}

Jump to

Keyboard shortcuts

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