bodies

package
v0.0.0-...-e95280a Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body interface {
	Resource() resources.Immutable
	Content() Content
	HasExecutesOn() bool
	ExecutesOn() *time.Time
}

Body represents an unsigned body of a transaction

type Builder

type Builder interface {
	Create() Builder
	WithContainer(container containers.Transaction) Builder
	WithContent(content contents.Transaction) Builder
	WithAccess(access access.Transaction) Builder
	ExecutesOn(executesOn time.Time) Builder
	Now() (Body, error)
}

Builder represents the transaction body

func NewBuilder

func NewBuilder() Builder

NewBuilder creates a new builder instance

type Content

type Content interface {
	Hash() hash.Hash
	IsContainer() bool
	Container() containers.Transaction
	IsContent() bool
	Content() contents.Transaction
	IsAccess() bool
	Access() access.Transaction
}

Content represents the content of a body transaction

Jump to

Keyboard shortcuts

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