plugin

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoodbyeHelper = struct {
	IsException    func(error) bool
	Args           func() *GoodbyeArgs
	WrapResponse   func(error) (*GoodbyeResult, error)
	UnwrapResponse func(*GoodbyeResult) error
}{}
View Source
var HandshakeHelper = struct {
	IsException    func(error) bool
	Args           func(request *api.HandshakeRequest) *HandshakeArgs
	WrapResponse   func(*api.HandshakeResponse, error) (*HandshakeResult, error)
	UnwrapResponse func(*HandshakeResult) (*api.HandshakeResponse, error)
}{}

Functions

func NewClient

func NewClient(c envelope.Client) api.Plugin

NewClient builds a new Plugin client.

Types

type GoodbyeArgs

type GoodbyeArgs struct{}

func (*GoodbyeArgs) EnvelopeType

func (v *GoodbyeArgs) EnvelopeType() wire.EnvelopeType

func (*GoodbyeArgs) FromWire

func (v *GoodbyeArgs) FromWire(w wire.Value) error

func (*GoodbyeArgs) MethodName

func (v *GoodbyeArgs) MethodName() string

func (*GoodbyeArgs) String

func (v *GoodbyeArgs) String() string

func (*GoodbyeArgs) ToWire

func (v *GoodbyeArgs) ToWire() (wire.Value, error)

type GoodbyeResult

type GoodbyeResult struct{}

func (*GoodbyeResult) EnvelopeType

func (v *GoodbyeResult) EnvelopeType() wire.EnvelopeType

func (*GoodbyeResult) FromWire

func (v *GoodbyeResult) FromWire(w wire.Value) error

func (*GoodbyeResult) MethodName

func (v *GoodbyeResult) MethodName() string

func (*GoodbyeResult) String

func (v *GoodbyeResult) String() string

func (*GoodbyeResult) ToWire

func (v *GoodbyeResult) ToWire() (wire.Value, error)

type Handler

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

Handler serves an implementation of the Plugin service.

func NewHandler

func NewHandler(service api.Plugin) Handler

NewHandler builds a new Plugin handler.

func (Handler) Handle

func (h Handler) Handle(name string, reqValue wire.Value) (wire.Value, error)

Handle receives and handles a request for the Plugin service.

type HandshakeArgs

type HandshakeArgs struct {
	Request *api.HandshakeRequest `json:"request,omitempty"`
}

func (*HandshakeArgs) EnvelopeType

func (v *HandshakeArgs) EnvelopeType() wire.EnvelopeType

func (*HandshakeArgs) FromWire

func (v *HandshakeArgs) FromWire(w wire.Value) error

func (*HandshakeArgs) MethodName

func (v *HandshakeArgs) MethodName() string

func (*HandshakeArgs) String

func (v *HandshakeArgs) String() string

func (*HandshakeArgs) ToWire

func (v *HandshakeArgs) ToWire() (wire.Value, error)

type HandshakeResult

type HandshakeResult struct {
	Success *api.HandshakeResponse `json:"success,omitempty"`
}

func (*HandshakeResult) EnvelopeType

func (v *HandshakeResult) EnvelopeType() wire.EnvelopeType

func (*HandshakeResult) FromWire

func (v *HandshakeResult) FromWire(w wire.Value) error

func (*HandshakeResult) MethodName

func (v *HandshakeResult) MethodName() string

func (*HandshakeResult) String

func (v *HandshakeResult) String() string

func (*HandshakeResult) ToWire

func (v *HandshakeResult) ToWire() (wire.Value, error)

Jump to

Keyboard shortcuts

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