action

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Concat

func Concat(aType uint8, signature, content []byte) []byte

Types

type Action

type Action struct {
	Type      uint8  `json:"type"`
	Signature []byte `json:"signature"`
	Content   []byte `json:"content"`
}

func NewAction

func NewAction(aType uint8, signature, content []byte) (action *Action, err error)

func RecoverFromConcation

func RecoverFromConcation(concatBytes []byte) (action *Action)

func TryRecoverFromConcation

func TryRecoverFromConcation(concatBytes []byte) (action *Action, err error)

func (*Action) Concat

func (action *Action) Concat() []byte

func (*Action) RecoverFromConcation

func (action *Action) RecoverFromConcation(concatBytes []byte)

func (*Action) TryRecoverFromConcation

func (action *Action) TryRecoverFromConcation(concatBytes []byte) (err error)

func (*Action) Verify

func (action *Action) Verify() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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