MessageBody

package
v0.0.0-...-c65277a Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 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 MessageBody

type MessageBody struct {
	TransactionId uint64
	TotalValue    uint64
	CurrentValue  uint64
	Message       []byte
	// contains filtered or unexported fields
}

func New

func New(currentByteInArray int, message []byte) (*MessageBody, int, error)

type ValueEntryStrategy

type ValueEntryStrategy interface {
	Responsible(currentByteInArray int, message []byte) bool
	ExtractStringValue(currentByteInArray int, message []byte) string
	ExtractIntValue(currentByteInArray int, message []byte) uint64
}

Jump to

Keyboard shortcuts

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