msg

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Overview

Package msg defined transaction message

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message interface {
	io.Stream
	Begin()
	End()
	SetBorrowed()
	CompareAndSwap() bool
	GetByteBuffer() *buffer.Bytes
	SetSliceDelimiter(delimiter string)
	WriteTo(w iow.Writer) (int64, error)
	Free()
	UseQuotes(quote bool)
}

type Provider

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

Provider represents a message provider

func NewProvider

func NewProvider(messageSize, concurrency int, newMessage func(provider *Provider, bytes *buffer.Bytes) Message) *Provider

NewProvider creates a message provider with supplied buffer size and pool size

func (*Provider) NewMessage

func (p *Provider) NewMessage() Message

NewMessage creates a message

func (*Provider) Put added in v0.6.4

func (p *Provider) Put(m Message)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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