engine

package
v0.0.0-...-e558f2e Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadRequestError

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

func (*BadRequestError) Error

func (e *BadRequestError) Error() string

func (*BadRequestError) Unwrap

func (e *BadRequestError) Unwrap() error

type Controller

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

func NewController

func NewController(
	requestParser RequestParser,
	storageController StorageController,
	logger *slog.Logger,
) *Controller

func (*Controller) Execute

func (c *Controller) Execute(ctx context.Context, rawCommand string) (string, error)

type IDGenerator

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

func (*IDGenerator) NextSeqID

func (g *IDGenerator) NextSeqID() uint64

type RequestParser

type RequestParser interface {
	ParseRequest(request string) (*computation.Command, error)
}

type StorageController

type StorageController interface {
	Execute(command *querylang.Command) (string, error)
}

Jump to

Keyboard shortcuts

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