portal

package
v0.0.0-...-ee7ae68 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlainPortal

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

func NewPortal

func NewPortal(s stack.Stack) PlainPortal

func (PlainPortal) Get

func (PlainPortal) GetAsync

func (n PlainPortal) GetAsync(request *messages.MessageWrapper, callback ResponseMessageCallback)

func (PlainPortal) GetAsyncWithTimeout

func (p PlainPortal) GetAsyncWithTimeout(request *messages.MessageWrapper, timeout time.Duration, callback ResponseMessageCallback)

func (PlainPortal) Produce

func (p PlainPortal) Produce(data *messages.MessageWrapper)

func (PlainPortal) Serve

func (n PlainPortal) Serve(prefix *name.Name, callback RequestMessageCallback)

type Portal

type Portal interface {
	Get(request *messages.MessageWrapper, timeout time.Duration) (*messages.MessageWrapper, error)
	GetAsync(request *messages.MessageWrapper, callback ResponseMessageCallback)
	GetAsyncWithTimeout(request *messages.MessageWrapper, timeout time.Duration, callback ResponseMessageCallback)
	Serve(prefix *name.Name, callback RequestMessageCallback)
	Produce(data *messages.MessageWrapper)
}

type PortalError

type PortalError struct {
	Arg  int
	Prob string
}

func (PortalError) Error

func (e PortalError) Error() string

type RequestMessageCallback

type RequestMessageCallback func(*messages.MessageWrapper) *messages.MessageWrapper

type ResponseMessageCallback

type ResponseMessageCallback func(*messages.MessageWrapper)

type SecurePortal

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

func NewSecurePortal

func NewSecurePortal(s stack.Stack) SecurePortal

func (SecurePortal) Connect

func (n SecurePortal) Connect(prefix *name.Name)

func (SecurePortal) Get

func (SecurePortal) GetAsync

func (n SecurePortal) GetAsync(request *messages.MessageWrapper, callback ResponseMessageCallback)

func (SecurePortal) GetAsyncWithTimeout

func (p SecurePortal) GetAsyncWithTimeout(request *messages.MessageWrapper, timeout time.Duration, callback ResponseMessageCallback)

func (SecurePortal) Produce

func (p SecurePortal) Produce(data *messages.MessageWrapper)

func (SecurePortal) Serve

func (n SecurePortal) Serve(prefix *name.Name, callback RequestMessageCallback)

Jump to

Keyboard shortcuts

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