eventid

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: CC0-1.0, MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

type T string

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(s string) (ei T, err error)

New 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) MarshalJSON

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

func (T) String

func (ei T) String() string

func (T) Validate

func (ei T) Validate() (err error)

Validate checks the T string is valid hex and 64 characters long.

Jump to

Keyboard shortcuts

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