Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.0.14
type Config struct {
EdgeCacheConfig EdgeCacheConfig `yaml:"edge_cache" default:"{}"`
}
type EdgeCacheConfig ¶ added in v0.0.14
type EdgeCacheConfig struct { Enabled bool `yaml:"enabled" default:"true"` FrameTTL human.Duration `yaml:"frame_ttl" default:"1440m"` }
func (*EdgeCacheConfig) Validate ¶ added in v0.0.14
func (c *EdgeCacheConfig) Validate() error
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
func NewHTTP ¶
func NewHTTP(log logrus.FieldLogger, svc *service.ForkChoice, config *Config, opts *Options) (*HTTP, error)
func (*HTTP) BindToRouter ¶
type Options ¶
type Options struct {
MetricsEnabled bool
}
func DefaultOptions ¶
func DefaultOptions() *Options
func (*Options) SetMetricsEnabled ¶
func (*Options) WithMetricsDisabled ¶
func (*Options) WithMetricsEnabled ¶
Click to show internal directories.
Click to hide internal directories.