Documentation ¶
Index ¶
- Variables
- func DeleteNetwork(store Store, req *DeleteNetworkRequest) error
- func ImportNetwork(store Store, net *Network, overwrite bool) error
- type APIConfig
- type ConsoleConfig
- type DeleteNetworkRequest
- type DescribeNetworkRequest
- type DescribeNetworkResponse
- type GRPCConfig
- type GraphQLConfig
- type ImportNetworkFromSourceRequest
- type ImportNetworkFromSourceResponse
- type ListNetworksResponse
- type Network
- type NetworkAlreadyExistsError
- type NetworkDoesNotExistError
- type RESTConfig
- type Reader
- type Readers
- type Store
- type TokenDAppConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNetworkDoesNotHaveGRPCHostConfigured = errors.New("network configuration does not have any gRPC host set") ErrNetworkDoesNotHaveHostConfiguredForConsole = errors.New("network configuration does not have any host set for console") ErrNetworkDoesNotHaveLocalPortConfiguredForConsole = errors.New("network configuration does not have any local port set for console") ErrNetworkDoesNotHaveHostConfiguredForTokenDApp = errors.New("network configuration does not have any host set for token dApp") ErrNetworkDoesNotHaveLocalPortConfiguredForTokenDApp = errors.New("network configuration does not have any local port set for token dApp") )
Functions ¶
func DeleteNetwork ¶ added in v0.11.0
func DeleteNetwork(store Store, req *DeleteNetworkRequest) error
Types ¶
type APIConfig ¶
type APIConfig struct { GRPC GRPCConfig `json:"grpc"` REST RESTConfig `json:"rest"` GraphQL GraphQLConfig `json:"graphQl"` }
type ConsoleConfig ¶
type DeleteNetworkRequest ¶ added in v0.11.0
type DeleteNetworkRequest struct {
Name string `json:"name"`
}
type DescribeNetworkRequest ¶ added in v0.10.0
type DescribeNetworkRequest struct {
Name string `json:"name"`
}
type DescribeNetworkResponse ¶ added in v0.10.0
type DescribeNetworkResponse struct { Name string `json:"name"` Level string `json:"logLevel"` TokenExpiry string `json:"tokenExpiry"` Port int `json:"port"` Host string `json:"host"` API struct { GRPCConfig struct { Hosts []string `json:"hosts"` Retries uint64 `json:"retries"` } `json:"grpcConfig"` RESTConfig struct { Hosts []string `json:"hosts"` } `json:"restConfig"` GraphQLConfig struct { Hosts []string `json:"hosts"` } `json:"graphQLConfig"` } `json:"api"` Console struct { URL string `json:"url"` LocalPort int `json:"localPort"` } }
func DescribeNetwork ¶ added in v0.10.0
func DescribeNetwork(store Store, req *DescribeNetworkRequest) (*DescribeNetworkResponse, error)
type GRPCConfig ¶
type GraphQLConfig ¶
type GraphQLConfig struct {
Hosts []string `json:"hosts"`
}
type ImportNetworkFromSourceRequest ¶ added in v0.10.0
type ImportNetworkFromSourceResponse ¶ added in v0.10.0
type ImportNetworkFromSourceResponse struct { Name string `json:"name"` FilePath string `json:"filePath"` }
func ImportNetworkFromSource ¶ added in v0.10.0
func ImportNetworkFromSource(s Store, rs Readers, req *ImportNetworkFromSourceRequest) (*ImportNetworkFromSourceResponse, error)
type ListNetworksResponse ¶ added in v0.10.0
type ListNetworksResponse struct {
Networks []string `json:"networks"`
}
func ListNetworks ¶ added in v0.10.0
func ListNetworks(store Store) (*ListNetworksResponse, error)
type Network ¶
type Network struct { Name string `json:"name"` Level encoding.LogLevel `json:"level"` TokenExpiry encoding.Duration `json:"tokenExpiry"` Port int `json:"port"` Host string `json:"host"` API APIConfig `json:"api"` TokenDApp TokenDAppConfig `json:"tokenDApp"` Console ConsoleConfig `json:"console"` }
func (*Network) EnsureCanConnectConsole ¶ added in v0.11.1
func (*Network) EnsureCanConnectGRPCNode ¶ added in v0.11.1
func (*Network) EnsureCanConnectTokenDApp ¶ added in v0.11.1
type NetworkAlreadyExistsError ¶ added in v0.9.2
type NetworkAlreadyExistsError struct {
Name string
}
func NewNetworkAlreadyExistsError ¶ added in v0.9.2
func NewNetworkAlreadyExistsError(n string) NetworkAlreadyExistsError
func (NetworkAlreadyExistsError) Error ¶ added in v0.9.2
func (e NetworkAlreadyExistsError) Error() string
type NetworkDoesNotExistError ¶ added in v0.9.2
type NetworkDoesNotExistError struct {
Name string
}
func NewNetworkDoesNotExistError ¶ added in v0.9.2
func NewNetworkDoesNotExistError(n string) NetworkDoesNotExistError
func (NetworkDoesNotExistError) Error ¶ added in v0.9.2
func (e NetworkDoesNotExistError) Error() string
type RESTConfig ¶
type RESTConfig struct {
Hosts []string `json:"hosts"`
}
type Readers ¶ added in v0.10.0
func NewReaders ¶ added in v0.10.0
func NewReaders() Readers
type TokenDAppConfig ¶ added in v0.11.0
Click to show internal directories.
Click to hide internal directories.