Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MCPTinyImage string
Functions ¶
func NewMCPServer ¶
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 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"`
}
Click to show internal directories.
Click to hide internal directories.