rpc

package
v0.0.0-...-acc4262 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HandshakeConfig = plugin.HandshakeConfig{
	ProtocolVersion:  1,
	MagicCookieKey:   "DRAFTER_PLUGIN",
	MagicCookieValue: "drafter",
}

Functions

This section is empty.

Types

type Client

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

func (*Client) Check

func (c *Client) Check(r io.Reader, n drafter.Options) ([]byte, error)

func (*Client) Parse

func (c *Client) Parse(r io.Reader, n drafter.Options) ([]byte, error)

func (*Client) Version

func (c *Client) Version() string

type Plugin

type Plugin struct {
	Impl drafter.Drafter
}

func (*Plugin) Client

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

func (*Plugin) Server

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

type Server

type Server struct {
	Impl drafter.Drafter
}

func (*Server) Check

func (v *Server) Check(args map[string]interface{}, resp *[]byte) error

func (*Server) Parse

func (v *Server) Parse(args map[string]interface{}, resp *[]byte) error

func (*Server) Version

func (v *Server) Version(args interface{}, resp *string) error

Jump to

Keyboard shortcuts

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