head

package
v0.0.0-...-51d629d Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2016 License: BSD-3-Clause, BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Head struct {
	Domain   string
	Id       string
	Sequence int
	BodyType string
	*stamp.Timestamp
	*signature.Signature
}

Head implements the record.HeaderInterface

func New

func New() *Head

New will create a new header and fill in the basic information

func (*Head) Check

func (h *Head) Check() error

Check to see if the package has the required information

func (*Head) GetDomain

func (h *Head) GetDomain() string

func (*Head) GetId

func (h *Head) GetId() string

func (*Head) GetSequence

func (h *Head) GetSequence() int

func (*Head) SetDomain

func (h *Head) SetDomain(val string)

func (*Head) SetId

func (h *Head) SetId(val string)

func (*Head) SetSequence

func (h *Head) SetSequence(val int)

func (*Head) String

func (h *Head) String() string

Convert the Head value to a string

type HeaderInterface

type HeaderInterface interface {
	IsTimeSet() bool
	GetSignature() ([]byte, error)
	SetSignature([]byte)
	Check() error
	IsSignatureSet() bool

	GetDomain() string
	SetDomain(string)
	GetId() string
	SetId(string)
	GetSequence() int
	SetSequence(int)
}

HeaderInterface defines the minimum set of calls required for a header

Jump to

Keyboard shortcuts

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