Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
    const (
	CreatedAtRepresentationFormat = time.RFC3339Nano
)
    
      View Source
      
  
const (
	NonceRepresentationBase = 10
)
    Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatedAt ¶
type CreatedAt struct {
	// contains filtered or unexported fields
}
    func ParseCreatedAt ¶
type Hash ¶
type Hash struct {
	// contains filtered or unexported fields
}
    func (Hash) SizeInBits ¶
func (Hash) SizeInBytes ¶
type HashDataLayout ¶
type HashDataLayout struct {
	// contains filtered or unexported fields
}
    func MustParseHashDataLayout ¶
func MustParseHashDataLayout(rawValue string) HashDataLayout
func NewHashDataLayout ¶
func NewHashDataLayout(rawValue *template.Template) HashDataLayout
func ParseHashDataLayout ¶
func ParseHashDataLayout(rawValue string) (HashDataLayout, error)
func (HashDataLayout) ToString ¶
func (value HashDataLayout) ToString() string
func (HashDataLayout) ToTemplate ¶
func (value HashDataLayout) ToTemplate() *template.Template
type LeadingZeroBitCount ¶
type LeadingZeroBitCount struct {
	// contains filtered or unexported fields
}
    func NewLeadingZeroBitCount ¶
func NewLeadingZeroBitCount(rawValue int) (LeadingZeroBitCount, error)
func (LeadingZeroBitCount) ToInt ¶
func (value LeadingZeroBitCount) ToInt() int
type Nonce ¶
type Nonce struct {
	// contains filtered or unexported fields
}
    func NewRandomNonce ¶
func NewRandomNonce(params RandomNonceParams) (Nonce, error)
func NewZeroNonce ¶
func ParseNonce ¶
func (Nonce) Incremented ¶
type RandomNonceParams ¶
type Resource ¶
type Resource struct {
	// contains filtered or unexported fields
}
    func NewResource ¶
func ParseResource ¶
type SerializedPayload ¶
type SerializedPayload struct {
	// contains filtered or unexported fields
}
    func NewSerializedPayload ¶
func NewSerializedPayload(rawValue string) SerializedPayload
func (SerializedPayload) ToString ¶
func (value SerializedPayload) ToString() string
type TargetBitIndex ¶
type TargetBitIndex struct {
	// contains filtered or unexported fields
}
    func NewTargetBitIndex ¶
func NewTargetBitIndex(rawValue int) (TargetBitIndex, error)
func (TargetBitIndex) ToInt ¶
func (value TargetBitIndex) ToInt() int
 Click to show internal directories. 
   Click to hide internal directories.