backend

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MCPTinyImage string

Functions

func NewMCPServer

func NewMCPServer() *server.MCPServer

Types

type HTTPServer

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

HTTPServer implements the Server interface

func NewHTTPServer

func NewHTTPServer() *HTTPServer

func (*HTTPServer) Start

func (s *HTTPServer) Start(addr string) error

func (*HTTPServer) Stop

func (s *HTTPServer) Stop() error

type Notification added in v0.6.1

type Notification struct {
	Type      string  `json:"type"`      // email, push, sms
	Channel   string  `json:"channel"`   // marketing, system, security
	Enabled   bool    `json:"enabled"`   // whether this notification is enabled
	Frequency float64 `json:"frequency"` // 0: realtime, 1: daily, 2: weekly, 3: monthly
}

Notification represents a user's notification preference

type PromptName

type PromptName string
const (
	Simple  PromptName = "simple_prompt"
	Complex PromptName = "complex_prompt"
)

type ToolName

type ToolName string
const (
	Echo                 ToolName = "echo"
	Add                  ToolName = "add"
	LongRunningOperation ToolName = "longRunningOperation"
	SampleLLM            ToolName = "sampleLLM"
	GetTinyImage         ToolName = "getTinyImage"
)

type User

type User struct {
	ID        string    `json:"id"`
	Username  string    `json:"username"`
	Email     string    `json:"email"`
	CreatedAt time.Time `json:"createdAt"`
	// Add new fields for testing
	Preferences struct {
		IsPublic      bool           `json:"isPublic"`
		ShowEmail     bool           `json:"showEmail"`
		Theme         string         `json:"theme"`
		Tags          []string       `json:"tags"`
		Settings      map[string]any `json:"settings"`
		Notifications []Notification `json:"notifications"`
	} `json:"preferences"`
}

Jump to

Keyboard shortcuts

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