batcher

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockBuilder

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

func NewBlockBuilder

func NewBlockBuilder() *BlockBuilder

func (*BlockBuilder) AddData

func (b *BlockBuilder) AddData(data *common.Envelope) *BlockBuilder

func (*BlockBuilder) AddMetadata

func (b *BlockBuilder) AddMetadata(index int, value []byte, signature []byte, signatureHeader []byte, identifierHeader []byte) *BlockBuilder

func (*BlockBuilder) Build

func (b *BlockBuilder) Build() *common.Block

func (*BlockBuilder) SetHeader

func (b *BlockBuilder) SetHeader(number uint64, previousHash, dataHash []byte) *BlockBuilder

type ExecuteTasksRequestBuilder

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

func NewExecuteTasksRequestBuilder

func NewExecuteTasksRequestBuilder() *ExecuteTasksRequestBuilder

func (*ExecuteTasksRequestBuilder) AddTask

func (*ExecuteTasksRequestBuilder) Build

func (*ExecuteTasksRequestBuilder) Marshal

func (b *ExecuteTasksRequestBuilder) Marshal() []byte

type TaskBuilder

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

func NewTaskBuilder

func NewTaskBuilder() *TaskBuilder

func (*TaskBuilder) Build

func (b *TaskBuilder) Build() *fpb.Task

func (*TaskBuilder) SetArgs

func (b *TaskBuilder) SetArgs(args []string) *TaskBuilder

func (*TaskBuilder) SetID

func (b *TaskBuilder) SetID(id string) *TaskBuilder

func (*TaskBuilder) SetMethod

func (b *TaskBuilder) SetMethod(method string) *TaskBuilder

Jump to

Keyboard shortcuts

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