handler

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package handler 는 AI 어시스턴트의 HTTP 어댑터다 — 상태 조회와 대화.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssistantHandler

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

func NewAssistantHandler

func NewAssistantHandler(chat chatter) *AssistantHandler

func (*AssistantHandler) Chat

func (h *AssistantHandler) Chat(c echo.Context) error

func (*AssistantHandler) GetStatus

func (h *AssistantHandler) GetStatus(c echo.Context) error

GetStatus 는 요청자 조직의 어시스턴트가 켜져 있는지다. 꺼져 있으면 모델 이름도 알리지 않는다.

func (*AssistantHandler) RegisterRoutes

func (h *AssistantHandler) RegisterRoutes(g *echo.Group)

RegisterRoutes 는 /api/v1/assistant 그룹에 붙는다. 그룹은 인증만 요구한다 — 무엇을 볼 수 있는지는 도구가 부르는 API 가 정한다.

type AuditSink

type AuditSink interface {
	Log(ctx context.Context, entry audit.AuditEntry) error
}

AuditSink 는 설정 변경을 남기는 감사 로그다. 없어도 된다.

type SettingsHandler

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

SettingsHandler 는 관리자가 조직의 모델 공급자 · 모델 · API 키를 등록하는 API 다. admin 그룹에 붙는다.

func NewSettingsHandler

func NewSettingsHandler(svc settingsService, auditSink AuditSink) *SettingsHandler

func (*SettingsHandler) Delete

func (h *SettingsHandler) Delete(c echo.Context) error

func (*SettingsHandler) Get

func (h *SettingsHandler) Get(c echo.Context) error

func (*SettingsHandler) Put

func (h *SettingsHandler) Put(c echo.Context) error

func (*SettingsHandler) RegisterRoutes

func (h *SettingsHandler) RegisterRoutes(g *echo.Group)

func (*SettingsHandler) Test

func (h *SettingsHandler) Test(c echo.Context) error

Test 는 연결을 시험한다. 모델이 실패해도 200 이고 결과는 본문의 ok · error 다(알림 채널 테스트와 같다).

Jump to

Keyboard shortcuts

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