Documentation ¶
Index ¶
Constants ¶
View Source
const RetryTimeout = 30 * time.Second
View Source
const RetryTimes = 20
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
func (*Channel) IsNotRelay ¶
func (*Channel) UpdateClient ¶
func (*Channel) UpdateClientFrequency ¶
type IChannel ¶
type IChannel interface { UpdateClient() error Relay() error IsNotRelay() bool Context() *domain.Context UpdateClientFrequency() uint64 }
func NewChannel ¶
func NewChannel( source repostitory.IChain, dest repostitory.IChain, height uint64, logger *log.Logger) (IChannel, error)
func NewMetricMW ¶
func NewMetricMW(svc IChannel, metricsModel *merticsmodel.Model) IChannel
type Metric ¶
type Metric struct {
// contains filtered or unexported fields
}
func (*Metric) IsNotRelay ¶
func (*Metric) UpdateClient ¶
func (*Metric) UpdateClientFrequency ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) IsNotRelay ¶
func (*Writer) UpdateClient ¶
func (*Writer) UpdateClientFrequency ¶
Click to show internal directories.
Click to hide internal directories.