Documentation ¶
Index ¶
- Constants
- func FlowClient(opt *FlowClientConfig) (*client.Client, error)
- func InitProtocolState(db *badger.DB, storages *storage.All) (protocol.State, error)
- func InitStorage(datadir string) *badger.DB
- func InitStorageWithTruncate(datadir string, truncate bool) *badger.DB
- func InitStorages(db *badger.DB) *storage.All
- func PrettyPrint(entity interface{})
- func PrettyPrintEntity(entity flow.Entity)
- type FlowClientConfig
Constants ¶
View Source
const ( DefaultAccessNodeIDSMinimum = 2 DefaultAccessAPIPort = "9000" DefaultAccessAPISecurePort = "9001" )
Variables ¶
This section is empty.
Functions ¶
func FlowClient ¶ added in v0.22.8
func FlowClient(opt *FlowClientConfig) (*client.Client, error)
FlowClient will return a secure or insecure flow client depending on *FlowClientConfig.Insecure
func InitProtocolState ¶ added in v0.12.0
func InitStorage ¶
func InitStorage(datadir string) *badger.DB
func InitStorageWithTruncate ¶ added in v0.11.0
func InitStorages ¶ added in v0.12.0
func PrettyPrintEntity ¶ added in v0.12.0
PrettyPrintEntity pretty print a flow entity
Types ¶
type FlowClientConfig ¶ added in v0.22.8
func FlowClientConfigs ¶ added in v0.22.8
func FlowClientConfigs(accessNodeIDS []string, insecureAccessAPI bool, snapshot protocol.Snapshot) ([]*FlowClientConfig, error)
FlowClientConfigs will assemble connection options for the flow client for each access node id
func NewFlowClientConfig ¶ added in v0.22.8
func NewFlowClientConfig(accessAddress, accessApiNodePubKey string, insecure bool) (*FlowClientConfig, error)
NewFlowClientConfig returns *FlowClientConfig
func (*FlowClientConfig) String ¶ added in v0.22.8
func (f *FlowClientConfig) String() string
Click to show internal directories.
Click to hide internal directories.