common

package
v0.0.0-...-269d6e4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GrpcLoggerInterceptor

func GrpcLoggerInterceptor(log *logger.ZapEventLogger) grpc.UnaryServerInterceptor

GrpcLoggerInterceptor logs any error produced by processing requests, and catches/recovers from panics.

func SetupInstrumentation

func SetupInstrumentation(prometheusAddr string) error

SetupInstrumentation starts a metrics endpoint.

func StringifyAddr

func StringifyAddr(addr address.Address) string

StringifyAddr stringifies an address.Address into a mainnet-prefixed string. address.String() always returns as if the address is for testnet. We force replacing it to be mainnet.

func StringifyAddrs

func StringifyAddrs(addrs ...address.Address) []string

StringifyAddrs stringifies a slice of address.Address into mainnet-prefixed strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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