server

package
v0.0.202 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 20 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
	OnEvent func(event Event)
}

type Event

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

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