Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ControllerType ControllerType `yaml:"type"`
Config *RawMessage `yaml:"config"`
}
type Controller ¶
type Controller interface {
Start(ctx context.Context) error
Stop(ctx context.Context) error
Type() string
Name() string
Address() string
}
func NewController ¶
func NewController(ctx context.Context, log logrus.FieldLogger, monitor, name string, controllerType ControllerType, config *RawMessage, splitAddress, recoveryAddress, splitsContractAddress string, ethereumPool *ethereum.Pool, safeClient s.Client, publisher *notifier.Publisher) (Controller, error)
type ControllerType ¶
type ControllerType string
const ( ControllerTypeUnknown ControllerType = "unknown" ControllerTypeEOA ControllerType = "eoa" ControllerTypeSafe ControllerType = "safe" )
type RawMessage ¶
type RawMessage struct {
// contains filtered or unexported fields
}
func (*RawMessage) Unmarshal ¶
func (r *RawMessage) Unmarshal(v interface{}) error
func (*RawMessage) UnmarshalYAML ¶
func (r *RawMessage) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.