service

package
v1.0.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseAction

func CloseAction(fn func(ctx context.Context, shutdown <-chan struct{}) error) error

CloseAction runs the function in the background, until it finishes or until it is closed by the user with an interrupt.

func ParseAddress added in v0.3.0

func ParseAddress(address string) (common.Address, error)

ParseAddress parses an ETH address from a hex string. This method will fail if the address is not a valid hexadecimal address.

func PrefixEnvVar

func PrefixEnvVar(prefix, suffix string) []string

func ValidateEnvVars added in v0.3.0

func ValidateEnvVars(prefix string, flags []cli.Flag, log log.Logger)

ValidateEnvVars logs all env vars that are found where the env var is prefixed with the supplied prefix (like KROMA_BATCHER) but there is no actual env var with that name. It helps validate that the supplied env vars are in fact valid.

Types

This section is empty.

Directories

Path Synopsis
Package clock provides an abstraction for time to enable testing of functionality that uses time as an input.
Package clock provides an abstraction for time to enable testing of functionality that uses time as an input.
tls
This file contains CLI and env TLS configurations that can be used by clients or servers
This file contains CLI and env TLS configurations that can be used by clients or servers
certman
Package certman provides live reloading of the certificate and key files used by the standard library http.Server.
Package certman provides live reloading of the certificate and key files used by the standard library http.Server.

Jump to

Keyboard shortcuts

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