eventid

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: CC0-1.0, MIT Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

type T struct {
	// contains filtered or unexported fields
}

T is the SHA256 hash in hexadecimal of the canonical form of an event as produced by the output of T.ToCanonical().Bytes().

func New

func New() (ei *T)

func NewFromBytes added in v1.0.8

func NewFromBytes(b []byte) (ei *T, err error)

func NewFromString added in v1.0.8

func NewFromString(s string) (ei *T, err error)

NewFromString inspects a string and ensures it is a valid, 64 character long hexadecimal string, returns the string coerced to the type.

func (*T) Bytes

func (ei *T) Bytes() (b []byte)

func (*T) Equal added in v1.0.8

func (ei *T) Equal(ei2 *T) bool

func (*T) Len added in v1.0.8

func (ei *T) Len() int

func (*T) MarshalJSON

func (ei *T) MarshalJSON() (b []byte, err error)

func (*T) Set added in v1.0.8

func (ei *T) Set(b []byte) (err error)

func (*T) String

func (ei *T) String() string

func (*T) UnmarshalJSON added in v1.0.8

func (ei *T) UnmarshalJSON(b []byte) (err error)

Jump to

Keyboard shortcuts

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