Documentation ¶
Index ¶
- Constants
- func From(typ interface{}) interface{}
- type FullOption
- type Option
- func ApplyIf(check func(s *Settings) bool, opts ...Option) Option
- func ConfigMinerOptions(c interface{}) Option
- func Error(err error) Option
- func If(b bool, opts ...Option) Option
- func MinerAPI(out *api.MinerAPI) Option
- func Options(opts ...Option) Option
- func Override(typ, constructor interface{}) Option
- func Repo(cctx *cli.Context, r repo.Repo) Option
- func Unset(typ interface{}) Option
- type Settings
- type StopFunc
Constants ¶
View Source
const ( // InitJournal at position 0 initializes the journal global var as soon as // the system starts, so that it's available for all other components. InitJournalKey = invoke(iota) // daemon ExtractApiKey SetApiEndpointKey SetRecorderDatastoreKey // set recorder datastore LaunchMetricsSampleThread F3ParticipantKey )
Invokes are called in the order they are defined.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FullOption ¶
type FullOption = Option
type Option ¶
Option is a functional option which can be used with the New function to change how the node is constructed
Options are applied in sequence
func ConfigMinerOptions ¶
func ConfigMinerOptions(c interface{}) Option
Directories ¶
Path | Synopsis |
---|---|
miner-manager/mock
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.