squad

package module
v0.0.0-...-84d3ddb Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

README

squad

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionPolicy

func ActionPolicy(resource string) *actionPolicy

func Client

func Client(name string, options ...interface{}) *squad

func CreateApi

func CreateApi(transport connect.ITransport) *squadApi

func CreateBind

func CreateBind(transport connect.ITransport) *squadBind

func Hub

func Hub(options ...interface{}) *hubServer

Types

type ActionFunc

type ActionFunc func(string, interface{}) IActionPolicy

func (ActionFunc) Action

func (af ActionFunc) Action(name string, action interface{}) IActionPolicy

type ClientOptions

type ClientOptions struct {
	ID            string
	Hub           string
	Specification *bool
}

type EndpointFunc

type EndpointFunc func(interface{}) interface{}

type IActionPolicy

type IActionPolicy interface {
	Policy(effect policy.PolicyEffect, audience ...string) *actionPolicy
}

type ISquad

type ISquad interface {
	Run()
}

type ISquadAPI

type ISquadAPI interface {
	Controller(controller interface{})

	Remote(controller interface{}, aptr interface{})

	Request(resource string, message interface{}) (interface{}, error)
	// contains filtered or unexported methods
}

type ISquadBind

type ISquadBind interface {
	ToController(path string, b ISquadBinder) interface{}
}

type ISquadBinder

type ISquadBinder interface {
	Invoke(action string, request interface{}, result interface{}) error
	// contains filtered or unexported methods
}

type InvokerFunc

type InvokerFunc func(action string, request interface{}) (interface{}, error)

type RequestFunc

type RequestFunc func(message interface{})

func (RequestFunc) Submit

func (rf RequestFunc) Submit(message interface{})

type SquadBinder

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

func (*SquadBinder) Invoke

func (s *SquadBinder) Invoke(action string, request interface{}, result interface{}) error

Directories

Path Synopsis
crypto

Jump to

Keyboard shortcuts

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