Help us shape the future of Go! Take the 2026 Go Developer Survey

api

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Code = `
export function request(ctx) {
    return {};
}
export function response(ctx) {
    return ctx.prev.result;
}
`

Functions

func Stack

func Stack(scope constructs.Construct, id string, props *Props) awscdk.Stack

Types

type AppSyncApi

type AppSyncApi struct {
	Name        string                    `json:"name"`
	DataSources datasource.DataSourceList `json:"-"`
	Schema      schema.Schema             `json:"schema"`
	Templates   template.Template         `json:"-"`
	ExportPath  string                    `json:"export_path"`
	Resolvers   resolver.ResolverList     `json:"resolvers"`
}

func FromJson

func FromJson(pathToJson string) *AppSyncApi

func (AppSyncApi) Export

func (a AppSyncApi) Export()

func (*AppSyncApi) Synth

func (a *AppSyncApi) Synth()

type AppSyncApiBuilder

type AppSyncApiBuilder struct {
	Name        string
	DataSources datasource.DataSourceList
	Schema      *schema.Schema
	Templates   *template.Template
	ExportPath  *string
}

func NewAppSyncApiBuilder

func NewAppSyncApiBuilder() *AppSyncApiBuilder

func (*AppSyncApiBuilder) AddDataSource

func (a *AppSyncApiBuilder) AddDataSource(datasourceType string, datasourceName string)

func (*AppSyncApiBuilder) Build

func (a *AppSyncApiBuilder) Build() AppSyncApi

func (*AppSyncApiBuilder) SetExportPath

func (a *AppSyncApiBuilder) SetExportPath(exportPath string)

func (*AppSyncApiBuilder) SetName

func (a *AppSyncApiBuilder) SetName(name string)

func (*AppSyncApiBuilder) SetSchema

func (a *AppSyncApiBuilder) SetSchema(pathToSchema string)

func (*AppSyncApiBuilder) SetTemplates

func (a *AppSyncApiBuilder) SetTemplates(pathToTemplate string)

type Props

type Props struct {
	awscdk.StackProps
	*AppSyncApi
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL