internal

package
v0.0.0-...-9be813a Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package internal gathers helpers used by code in ./core/... but not visible outside core.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetadataAsAny

func MetadataAsAny(meta *pb.MapperMetadata) (*any.Any, error)

MetadataAsAny marshals the supplied MapperMetadata proto into an 'any', which can be supplied as metadata to the Trillian map when setting leaves.

func MetadataFromMapRoot

func MetadataFromMapRoot(r *trillian.SignedMapRoot) (*pb.MapperMetadata, error)

MetadataFromMapRoot converts the google.protobuf.Any metadata field from the Trillian SignedMapRoot into a pb.MapperMetadata, or returns an error if the field is absent or of the wrong type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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