Documentation
¶
Index ¶
- type NodeRegistration
- type SyncServer
- type SyncServerConfig
- type SyncServerOption
- func WithContext(ctx context.Context) SyncServerOption
- func WithDB(db *sql.DB) SyncServerOption
- func WithFeeCalculator(calc fees.IFeeCalculator) SyncServerOption
- func WithLogger(log *zap.Logger) SyncServerOption
- func WithNodeRegistry(reg registry.NodeRegistry) SyncServerOption
- func WithRegistrant(r *registrant.Registrant) SyncServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeRegistration ¶ added in v0.1.1
type NodeRegistration struct {
// contains filtered or unexported fields
}
type SyncServer ¶
type SyncServer struct {
// contains filtered or unexported fields
}
func NewSyncServer ¶
func NewSyncServer(opts ...SyncServerOption) (*SyncServer, error)
func (*SyncServer) Close ¶
func (s *SyncServer) Close()
type SyncServerConfig ¶ added in v0.4.0
type SyncServerConfig struct {
Ctx context.Context
Log *zap.Logger
NodeRegistry registry.NodeRegistry
Registrant *registrant.Registrant
DB *sql.DB
FeeCalculator fees.IFeeCalculator
}
type SyncServerOption ¶ added in v0.4.0
type SyncServerOption func(*SyncServerConfig)
func WithContext ¶ added in v0.4.0
func WithContext(ctx context.Context) SyncServerOption
func WithDB ¶ added in v0.4.0
func WithDB(db *sql.DB) SyncServerOption
func WithFeeCalculator ¶ added in v0.4.0
func WithFeeCalculator(calc fees.IFeeCalculator) SyncServerOption
func WithLogger ¶ added in v0.4.0
func WithLogger(log *zap.Logger) SyncServerOption
func WithNodeRegistry ¶ added in v0.4.0
func WithNodeRegistry(reg registry.NodeRegistry) SyncServerOption
func WithRegistrant ¶ added in v0.4.0
func WithRegistrant(r *registrant.Registrant) SyncServerOption
Click to show internal directories.
Click to hide internal directories.