Discover Packages
github.com/attestantio/dirk
core
package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Feb 1, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
InitStores initialises the stores from a configuration.
type Endpoint struct {
ID uint64 `mapstructure:"id"`
Name string `mapstructure:"name"`
Port uint32 `mapstructure:"port"`
}
Endpoint contains information about an endpoint.
ConnectAddress returns an address suitable for connecting to the endpoint.
String returns a human-readable representation of the endpoint.
Result represents the result of a process.
const (
ResultUnknown Result = iota
ResultSucceeded
ResultDenied
ResultFailed
)
Possible results of a process.
type Store struct {
Name string `mapstructure:"name"`
Type string `mapstructure:"type"`
Location string `mapstructure:"location"`
Passphrase string `mapstructure:"passphrase"`
}
Store defines a single store.
type Stores struct {
Stores []*Store `mapstructure:"stores"`
}
Stores defines all stores.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.