Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Blueprint ¶
type Blueprint struct {
SchemaVersion string `json:"schema_version" yaml:"schema_version"`
RuntimeMode string `json:"runtime_mode" yaml:"runtime_mode"`
Service *ServiceSpec `json:"service" yaml:"service"`
Services []ServiceSpec `json:"services" yaml:"services"`
HTTP []HTTPRoute `json:"http" yaml:"http"`
Plugins []string `json:"plugins" yaml:"plugins"`
Datastore *DatastoreSpec `json:"datastore" yaml:"datastore"`
Queues []QueueSpec `json:"queues" yaml:"queues"`
}
func (*Blueprint) Generate ¶
func (bp *Blueprint) Generate(opts GenerateOptions) error
type DatastoreSpec ¶
type GenerateOptions ¶
type GenerateOptions struct {
OutDir string
}
type ServiceSpec ¶
type ServiceSpec struct {
Name string `json:"name" yaml:"name"`
Module string `json:"module" yaml:"module"`
RuntimeMode string `json:"runtime_mode" yaml:"runtime_mode"`
ServiceID any `json:"service_id" yaml:"service_id"`
ServiceGroup string `json:"service_group" yaml:"service_group"`
Port string `json:"port" yaml:"port"`
HTTP []HTTPRoute `json:"http" yaml:"http"`
Plugins []string `json:"plugins" yaml:"plugins"`
Datastore *DatastoreSpec `json:"datastore" yaml:"datastore"`
Queues []QueueSpec `json:"queues" yaml:"queues"`
}
Click to show internal directories.
Click to hide internal directories.