Documentation
¶
Index ¶
- func RegisterSchema(scaled *config.Scaled, server *server.Server) error
- type Chat
- type Handler
- func (h *Handler) Create(uid string, req NewChatRequest) (*entv1.Chat, error)
- func (h *Handler) Delete(id string) error
- func (h *Handler) FindByID(id, userId string) (*entv1.Chat, error)
- func (h *Handler) ListAll() (entv1.Chats, error)
- func (h *Handler) ListByUser(uid string) ([]*entv1.Chat, error)
- func (h *Handler) Update(id string, req UpdateChatRequest) (*entv1.Chat, error)
- type NewChatRequest
- type Store
- func (s *Store) ByID(apiOp *types.APIRequest, schema *types.APISchema, id string) (types.APIObject, error)
- func (s *Store) Create(apiOp *types.APIRequest, schema *types.APISchema, data types.APIObject) (types.APIObject, error)
- func (s *Store) Delete(apiOp *types.APIRequest, schema *types.APISchema, id string) (types.APIObject, error)
- func (s *Store) HasEntClient() bool
- func (s *Store) List(apiOp *types.APIRequest, schema *types.APISchema) (types.APIObjectList, error)
- func (s *Store) Update(apiOp *types.APIRequest, schema *types.APISchema, data types.APIObject, ...) (types.APIObject, error)
- type UpdateChatRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chat ¶
type Chat struct {
// ID of the database.
ID string `json:"id,omitempty"`
// Title holds the value of the "title" field.
Title string `json:"title,omitempty"`
// UserId holds the value of the "userId" field.
UserId string `json:"userId,omitempty"`
// Models holds the value of the "models" field.
Models []string `json:"models,omitempty"`
// Tags holds the value of the "tags" field.
Tags []string `json:"tags,omitempty"`
// History holds the value of the "history" field.
History typev1.History `json:"history,omitempty"`
// Messages holds the value of the "messages" field.
Messages []typev1.Message `json:"messages,omitempty"`
// CreatedAt holds the value of the "createdAt" field.
CreatedAt time.Time `json:"createdAt,omitempty"`
}
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(mgmt *config.Management) Handler
type NewChatRequest ¶
Click to show internal directories.
Click to hide internal directories.