contract

package
v0.0.0-...-8a04a08 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract struct {
	Codec        int
	Snappy       bool
	Provider     string
	Consumer     string
	Interactions []*Interaction
	Metadata     map[string]string
}

func (*Contract) ContractTest

func (c *Contract) ContractTest(t *testing.T, kujaClient client.Client)

type Contracts

type Contracts []*Contract

type Interaction

type Interaction struct {
	Description   string
	ProviderState string
	Request       *Request
	Response      *Response
	Publish       *Publish
}

type Publish

type Publish struct {
	Metadata map[string]string
	Topic    string
	Message  interface{}
}

type Request

type Request struct {
	Metadata       map[string]string
	Method         string
	Body           interface{}
	ResponseObject interface{}
}

type Response

type Response struct {
	Metadata map[string]string
	Status   int
	Body     interface{}
	Error    error
}

Jump to

Keyboard shortcuts

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