Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNetworkDoesNotHaveGRPCHostConfigured = errors.New("network configuration does not have any gRPC host set")
Functions ¶
This section is empty.
Types ¶
type APIConfig ¶
type APIConfig struct { GRPC GRPCConfig `json:"grpc"` REST RESTConfig `json:"rest"` GraphQL GraphQLConfig `json:"graphQl"` }
type AlreadyExistsError ¶ added in v0.55.0
type AlreadyExistsError struct {
Name string
}
func NewAlreadyExistsError ¶ added in v0.55.0
func NewAlreadyExistsError(n string) AlreadyExistsError
func (AlreadyExistsError) Error ¶ added in v0.55.0
func (e AlreadyExistsError) Error() string
type DoesNotExistError ¶ added in v0.55.0
type DoesNotExistError struct {
Name string
}
func NewDoesNotExistError ¶ added in v0.55.0
func NewDoesNotExistError(n string) DoesNotExistError
func (DoesNotExistError) Error ¶ added in v0.55.0
func (e DoesNotExistError) Error() string
type GRPCConfig ¶
type GraphQLConfig ¶
type GraphQLConfig struct {
Hosts []string `json:"hosts"`
}
type Network ¶
type Network struct { Name string `json:"name"` LogLevel vgencoding.LogLevel `json:"level"` TokenExpiry vgencoding.Duration `json:"tokenExpiry"` Port int `json:"port"` Host string `json:"host"` API APIConfig `json:"api"` }
func (*Network) EnsureCanConnectGRPCNode ¶
type RESTConfig ¶
type RESTConfig struct {
Hosts []string `json:"hosts"`
}
Click to show internal directories.
Click to hide internal directories.