app

package
v0.0.0-...-81345a1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright 2017 Mosaic Networks Ltd

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InmemAppProxy

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

InmemProxy is used for testing

func NewInmemAppProxy

func NewInmemAppProxy(logger *logrus.Logger) *InmemAppProxy

func (*InmemAppProxy) CommitTx

func (p *InmemAppProxy) CommitTx(tx []byte) error

func (*InmemAppProxy) GetCommittedTransactions

func (p *InmemAppProxy) GetCommittedTransactions() [][]byte

func (*InmemAppProxy) SubmitCh

func (p *InmemAppProxy) SubmitCh() chan []byte

func (*InmemAppProxy) SubmitTx

func (p *InmemAppProxy) SubmitTx(tx []byte)

type SocketAppProxy

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

func NewSocketAppProxy

func NewSocketAppProxy(clientAddr string, bindAddr string, timeout time.Duration, logger *logrus.Logger) *SocketAppProxy

func (*SocketAppProxy) CommitTx

func (p *SocketAppProxy) CommitTx(tx []byte) error

func (*SocketAppProxy) SubmitCh

func (p *SocketAppProxy) SubmitCh() chan []byte

type SocketAppProxyClient

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

func NewSocketAppProxyClient

func NewSocketAppProxyClient(clientAddr string, timeout time.Duration, logger *logrus.Logger) *SocketAppProxyClient

func (*SocketAppProxyClient) CommitTx

func (p *SocketAppProxyClient) CommitTx(tx []byte) (*bool, error)

type SocketAppProxyServer

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

func NewSocketAppProxyServer

func NewSocketAppProxyServer(bindAddress string, logger *logrus.Logger) *SocketAppProxyServer

func (*SocketAppProxyServer) SubmitTx

func (p *SocketAppProxyServer) SubmitTx(tx []byte, ack *bool) error

Jump to

Keyboard shortcuts

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