cmd

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2018 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "alfred",
	Short: "A stellar wallet",
	Long:  `A stellar wallet`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

func GetData added in v0.1.10

func GetData(header *Header, parts []*Part) ([]byte, error)

Types

type Header struct {
	Filename string
	Length   uint64
	Checksum []byte
}

func ParseHeader added in v0.1.10

func ParseHeader(key string, value []byte) (*Header, error)

func (*Header) Key added in v0.1.10

func (h *Header) Key() string

func (*Header) Value added in v0.1.10

func (h *Header) Value() []byte

type KVData added in v0.1.10

type KVData interface {
	Key() string
	Value() []byte
}

type Part added in v0.1.10

type Part struct {
	Filename string
	Offset   uint32
	Data     []byte
}

func ParsePart added in v0.1.10

func ParsePart(prefix string, key string, value []byte) (*Part, error)

func SplitIntoParts added in v0.1.10

func SplitIntoParts(filename string, data []byte) []*Part

func (*Part) Key added in v0.1.10

func (p *Part) Key() string

func (*Part) Value added in v0.1.10

func (p *Part) Value() []byte

Jump to

Keyboard shortcuts

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