server

package
v0.0.350 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrServerAlreadyRunning = fmt.Errorf("There is already an instance of sst running")

Functions

func Connect

func Connect(ctx context.Context, input ConnectInput) error

Types

type ConnectInput

type ConnectInput struct {
	CfgPath string
	Stage   string
	Verbose bool
	OnEvent func(event Event)
}

type DeployRequestedEvent added in v0.0.246

type DeployRequestedEvent struct{}

type Event

type Event struct {
	project.StackEvent
	StateEvent            *StateEvent
	FunctionInvokedEvent  *aws.FunctionInvokedEvent
	FunctionResponseEvent *aws.FunctionResponseEvent
	FunctionErrorEvent    *aws.FunctionErrorEvent
	FunctionLogEvent      *aws.FunctionLogEvent
	FunctionBuildEvent    *aws.FunctionBuildEvent

	WorkerBuildEvent   *cloudflare.WorkerBuildEvent
	WorkerUpdatedEvent *cloudflare.WorkerUpdatedEvent
	WorkerInvokedEvent *cloudflare.WorkerInvokedEvent
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(p *project.Project) (*Server, error)

func (*Server) Start

func (s *Server) Start(parentContext context.Context) error

type State

type State struct {
	App    string
	Stage  string
	Config string
}

type StateEvent

type StateEvent struct {
	State *State
}

Directories

Path Synopsis
dev
aws

Jump to

Keyboard shortcuts

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