Documentation
¶
Index ¶
Constants ¶
View Source
const ( Checkout string = "checkout" Admin string = "admin" PostPurchase string = "post-purchase" )
Variables ¶
This section is empty.
Functions ¶
func GetSurface ¶ added in v0.2.0
Types ¶
type Capabilities ¶ added in v0.3.1
type Capabilities struct {
NetworkAccess bool `json:"networkAccess" yaml:"network_access"`
}
type Config ¶
type Config struct { App appYaml `yaml:"app"` Extensions []Extension `yaml:"extensions"` Port int IntegrationContext `yaml:",inline"` }
type Development ¶
type Development struct { Build commandConfig `json:"-" yaml:"build,omitempty"` BuildDir string `json:"-" yaml:"build_dir,omitempty"` Develop commandConfig `json:"-" yaml:"develop,omitempty"` Entries map[string]string `json:"-" yaml:"entries,omitempty"` Resource Url `json:"resource" yaml:"resource,omitempty"` Renderer Renderer `json:"-" yaml:"renderer,omitempty"` Root Url `json:"root" yaml:"root,omitempty"` RootDir string `json:"-" yaml:"root_dir,omitempty"` Hidden bool `json:"hidden" yaml:"-"` Status string `json:"status" yaml:"-"` LocalizationStatus string `json:"localizationStatus" yaml:"-"` Template string `json:"-" yaml:"template,omitempty"` }
func (Development) UsesReact ¶ added in v0.3.0
func (d Development) UsesReact() bool
func (Development) UsesTypeScript ¶ added in v0.3.0
func (d Development) UsesTypeScript() bool
type Extension ¶
type Extension struct { Assets map[string]Asset `json:"assets" yaml:"-"` Capabilities Capabilities `json:"capabilities" yaml:"capabilities,omitempty"` Development Development `json:"development" yaml:"development,omitempty"` ExtensionPoints []string `json:"extensionPoints" yaml:"extension_points,omitempty"` Localization *Localization `json:"localization" yaml:"-"` Metafields []Metafield `json:"metafields" yaml:"metafields,omitempty"` Type string `json:"type" yaml:"type,omitempty"` UUID string `json:"uuid" yaml:"uuid,omitempty"` Version string `json:"version" yaml:"version,omitempty"` Surface string `json:"surface" yaml:"-"` Title string `json:"title,omitempty" yaml:"title,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` NodeExecutable string `json:"-" yaml:"node_executable,omitempty"` }
func (Extension) NormalizedType ¶ added in v0.5.0
func (Extension) Transformer ¶ added in v0.2.0
type ExtensionService ¶
type ExtensionService struct { App App Extensions []Extension Port int Store string Version string PublicUrl string }
func NewExtensionService ¶
func NewExtensionService(config *Config, apiRoot string) *ExtensionService
type IntegrationContext ¶ added in v0.2.0
type JsonFragment ¶ added in v0.3.0
type JsonFragment struct {
Fragment `json:"-"`
}
type Localization ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.