server

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context

func Context(r *http.Request) context.Context

Types

type CellWithValues added in v0.1.7

type CellWithValues struct {
	service.Cell

	Cells  map[string]*service.Cell `json:"cells"`
	Values map[string]any           `json:"values"`
}

type Info

type Info struct {
	Databases []string `json:"databases"`
	Version   string   `json:"version"`
}

type RenderRequest added in v0.1.4

type RenderRequest struct {
	Content string `json:"content"`
	Data    any    `json:"data"`
}

type Response

type Response struct {
	Message string `json:"message,omitempty"`
	Error   string `json:"error,omitempty"`
	Data    any    `json:"data,omitempty"`
}

type ResponseQuery

type ResponseQuery struct {
	Columns      []string `json:"columns,omitempty"`
	Rows         [][]any  `json:"rows,omitempty"`
	RowsAffected int64    `json:"rows_affected,omitempty"`
	Duration     string   `json:"duration,omitempty"`
}

type Server

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

func New

func New(ctx context.Context, cfg config.Server, svc *service.Service) (*Server, error)

func (*Server) Start

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

Jump to

Keyboard shortcuts

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