Documentation
¶
Index ¶
- func InitializeNewRuntime(program *AnemosProgram) (*js.JsRuntime, error)
- func Run(program *AnemosProgram) error
- type AnemosProgram
- type CliSlogHandler
- func (handler *CliSlogHandler) Enabled(ctx context.Context, level slog.Level) bool
- func (handler *CliSlogHandler) Handle(context context.Context, record slog.Record) error
- func (handler *CliSlogHandler) WithAttrs(attrs []slog.Attr) slog.Handler
- func (handler *CliSlogHandler) WithGroup(name string) slog.Handler
- type SourceType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeNewRuntime ¶ added in v0.2.0
func InitializeNewRuntime(program *AnemosProgram) (*js.JsRuntime, error)
func Run ¶
func Run(program *AnemosProgram) error
Types ¶
type AnemosProgram ¶
type CliSlogHandler ¶
type CliSlogHandler struct {
// contains filtered or unexported fields
}
func NewCliSlogHandler ¶
func NewCliSlogHandler(writer io.Writer, handlerOptions *slog.HandlerOptions) *CliSlogHandler
type SourceType ¶
type SourceType string
var ( SourceTypePackage SourceType = "package" SourceTypeURL SourceType = "url" )
Click to show internal directories.
Click to hide internal directories.