cmd

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func SaveInput added in v0.0.2

func SaveInput(message []byte) error

Types

type InitProjectArgs

type InitProjectArgs struct {
	BaseURL           string
	Dir               string
	Token             string
	OrgId             string
	Provider          string
	Name              string
	Description       string
	EnableWebhookAuth bool
}

type LiveDevConnection

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

func NewLiveDevConnection

func NewLiveDevConnection(logger logger.Logger, sdkEventsFile string, websocketId string, websocketUrl string, apiKey string) (*LiveDevConnection, error)

func (*LiveDevConnection) Close

func (c *LiveDevConnection) Close() error

func (*LiveDevConnection) SendMessage

func (c *LiveDevConnection) SendMessage(payload map[string]any, messageType string) error

func (*LiveDevConnection) SetOnMessage added in v0.0.2

func (c *LiveDevConnection) SetOnMessage(onMessage func(message []byte) error)

func (*LiveDevConnection) WebURL

func (c *LiveDevConnection) WebURL(appUrl string) string

func (*LiveDevConnection) Write

func (c *LiveDevConnection) Write(jsonLogMessage []byte) (int, error)

implements io.Writer to send logs

type Message

type Message struct {
	ID      string         `json:"id"`
	Type    string         `json:"type"`
	Payload map[string]any `json:"payload"`
}

type TriggerMessage added in v0.0.2

type TriggerMessage struct {
	ID      string `json:"id"`
	Type    string `json:"type"`
	From    string `json:"from"`
	Payload struct {
		Trigger     string `json:"trigger"`
		ContentType string `json:"contentType"`
		Payload     string `json:"payload"`
	} `json:"payload"`
}

Jump to

Keyboard shortcuts

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