web

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallBackHandler

type CallBackHandler func(context.Context, []byte) (message, data string, err error)

CallBackHandler is the Handle function signature which will be called from the provided go code when dealing with callbacks. Package name must be callback, "callback.Handle"

type Driver added in v0.0.7

type Driver struct{}

Driver for Go language based transactions

func New

func New() (d *Driver)

New creates a new Go driver

func (*Driver) New added in v0.0.7

func (d *Driver) New(config transaction.Config) (tx transaction.Transaction, err error)

New creates a web transaction

func (*Driver) Type added in v0.0.7

func (d *Driver) Type() (t string)

Type returns this driver type

type Transaction

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

Transaction is a pre-compiled replicant transaction for golang based custom transactions

func (*Transaction) Config

func (t *Transaction) Config() (config transaction.Config)

Config returns the transaction config

func (*Transaction) Run

func (t *Transaction) Run(ctx context.Context) (result transaction.Result)

Run executes the web transaction

type TxFunc

type TxFunc func(context.Context) (message, data string, err error)

TxFunc is the Run function signature which will be called from the provided go code. Package name must be transaction, "transaction.Run".

Jump to

Keyboard shortcuts

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