forked from TrueCloudLab/frostfs-node
[#1224] morph: Add configuration getters
Includes `WithNotary` and `IsAlpha` methods to the `StaticClient`. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
f0c9a68ad3
commit
a129fc98da
1 changed files with 14 additions and 0 deletions
|
@ -30,6 +30,20 @@ type staticOpts struct {
|
|||
fees fees
|
||||
}
|
||||
|
||||
// WithNotary returns notary status of the client.
|
||||
//
|
||||
// See also TryNotary.
|
||||
func (s *StaticClient) WithNotary() bool {
|
||||
return s.tryNotary
|
||||
}
|
||||
|
||||
// IsAlpha returns Alphabet status of the client.
|
||||
//
|
||||
// See also AsAlphabet.
|
||||
func (s *StaticClient) IsAlpha() bool {
|
||||
return s.alpha
|
||||
}
|
||||
|
||||
// StaticClientOption allows to set an optional
|
||||
// parameter of StaticClient.
|
||||
type StaticClientOption func(*staticOpts)
|
||||
|
|
Loading…
Reference in a new issue