Documentation ¶
Index ¶
- func ImportNetwork(store Store, net *Network, overwrite bool) error
- func InitialiseNetworks(store Store, overwrite bool) error
- type APIConfig
- type ConsoleConfig
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitialiseNetworks ¶
Types ¶
type APIConfig ¶
type APIConfig struct { GRPC GRPCConfig REST RESTConfig GraphQL GraphQLConfig }
type ConsoleConfig ¶
type DescribeNetworkRequest ¶ added in v0.10.0
type DescribeNetworkRequest struct {
Name string
}
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
}
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 Level encoding.LogLevel TokenExpiry encoding.Duration Port int Host string API APIConfig Console ConsoleConfig // TO REMOVE Once the tools use the new API.GRPC Nodes GRPCConfig }
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
}
type Readers ¶ added in v0.10.0
func NewReaders ¶ added in v0.10.0
func NewReaders() Readers
Click to show internal directories.
Click to hide internal directories.