Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultConfigFilePath = "config.json"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompositeLogger ¶
CompositeLogger is the interface for a logger that implements both the cmtlog.Logger and ethlog.Logger interfaces
func NewCompositeLogger ¶
func NewCompositeLogger(lvl string, keyvals ...any) (CompositeLogger, error)
NewCompositeLogger creates a new CompositeLogger Accepted log levels are: "trace", "debug", "info", "warn", "error", "crit"
type Config ¶
type Config struct { // Accepted log levels are: "trace", "debug", "info", "warn", "error", "crit" LogLevel string `json:"logLevel"` GethEngineAddr string `json:"gethEngineAddr"` GethAuthSecret []byte `json:"gethAuthSecret"` EngineServerAddr string `json:"engineServerAddr"` PeptideEngineAddr string `json:"peptideEngineAddr"` }
Config is the configuration for the interceptor binary.
func ConfigFromFilePath ¶
ConfigFromFilePath reads a Config from a file.
Click to show internal directories.
Click to hide internal directories.