nkn

package module
v0.0.0-...-e7697d1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Protocol) error

Option is the function signature required to be considered an pubsub.Option.

func WithConsumerAddress

func WithConsumerAddress(address string) Option

func WithWalletSeed

func WithWalletSeed(seed string) Option

type Protocol

type Protocol struct {
	// Sender
	SenderAccount string
	SenderClient  *nkn.Client

	// // Consumer
	ConsumerAddress string
}

func New

func New(seed string, consumerAdress string, opts ...ProtocolOptionFunc) (*Protocol, error)

New creates a new nkn transport

func NewProtocol

func NewProtocol(ctx context.Context, opts ...ProtocolOptionFunc) (*Protocol, error)

NewProtocol creates a new nkn transport.

type ProtocolOptionFunc

type ProtocolOptionFunc func(protocol *Protocol)

ProtocolOptionFunc is the type of kafka_sarama.Protocol options

type Sender

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

func (*Sender) Send

func (s *Sender) Send(ctx context.Context, in binding.Message, transformers ...binding.Transformer) error

type SenderOptionFunc

type SenderOptionFunc func(sender *Sender)

Jump to

Keyboard shortcuts

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