app

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is the binary version, overridable at build time via -ldflags "-X github.com/rainmana/tinybrain/v3/internal/app.Version=v1.2.3"

Functions

func Main

func Main()

Main is the shared entry point for the tinybrain and server binaries.

Types

type TinyBrainServer

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

TinyBrainServer represents the main MCP server for security-focused memory storage

func NewTinyBrainServer

func NewTinyBrainServer(dbPath string, logger *log.Logger) (*TinyBrainServer, error)

NewTinyBrainServer initializes the database, repositories, and services backing the MCP server. dbPath is the SQLite database file location.

func (*TinyBrainServer) Close

func (t *TinyBrainServer) Close() error

Close releases the underlying database connection.

func (*TinyBrainServer) StartHTTP

func (t *TinyBrainServer) StartHTTP(addr string) error

StartHTTP serves the REST API documented at https://rainmana.github.io/tinybrain/api-reference/ plus a small dashboard. Endpoints are registered both at the root (POST /sessions) and under /api/ (POST /api/sessions).

Jump to

Keyboard shortcuts

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